You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules/setting
Jason Song f8e93ce423
Reminder for no more logs to console (#22282)
Even if the log mode is `file`, there are still few logs printed to the
console at the very beginning.

That's fine but confusing. Someone will think the console is the only
place to find logs, and get nothing helpful. See
https://github.com/go-gitea/gitea/issues/22274#issuecomment-1367917717.

There should be a reminder that there are no more logs to the console.

And to avoid log loss, we should add configured loggers first, then
remove console logger if there's no `console` in the mode.

Tests with `MODE = file`:

Before:
<img width="1792" alt="image"
src="https://user-images.githubusercontent.com/9418365/210079862-d591677f-347e-46ed-a548-bb2ddbb0885c.png">

After:
<img width="1792" alt="image"
src="https://user-images.githubusercontent.com/9418365/210080002-d66cc418-6888-4909-b370-d03f5986ef41.png">

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
2 years ago
..
attachment.go Implement FSFE REUSE for golang files (#21840) 2 years ago
cache.go Implement FSFE REUSE for golang files (#21840) 2 years ago
cors.go Implement FSFE REUSE for golang files (#21840) 2 years ago
cron.go Implement FSFE REUSE for golang files (#21840) 2 years ago
cron_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
database.go Support disabling database auto migration (#22053) 2 years ago
database_sqlite.go Implement FSFE REUSE for golang files (#21840) 2 years ago
database_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
directory.go Implement FSFE REUSE for golang files (#21840) 2 years ago
federation.go Implement FSFE REUSE for golang files (#21840) 2 years ago
git.go Implement FSFE REUSE for golang files (#21840) 2 years ago
i18n.go Implement FSFE REUSE for golang files (#21840) 2 years ago
indexer.go Implement FSFE REUSE for golang files (#21840) 2 years ago
indexer_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
lfs.go Implement FSFE REUSE for golang files (#21840) 2 years ago
log.go Reminder for no more logs to console (#22282) 2 years ago
mailer.go Implement FSFE REUSE for golang files (#21840) 2 years ago
markup.go Implement FSFE REUSE for golang files (#21840) 2 years ago
migrations.go Implement FSFE REUSE for golang files (#21840) 2 years ago
mime_type_map.go Implement FSFE REUSE for golang files (#21840) 2 years ago
mirror.go Implement FSFE REUSE for golang files (#21840) 2 years ago
oauth2_client.go Implement FSFE REUSE for golang files (#21840) 2 years ago
packages.go Implement FSFE REUSE for golang files (#21840) 2 years ago
packages_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
picture.go Fix bug of DisableGravatar default value (#22296) 2 years ago
project.go Implement FSFE REUSE for golang files (#21840) 2 years ago
proxy.go Implement FSFE REUSE for golang files (#21840) 2 years ago
queue.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repository.go Add option to prohibit fork if user reached maximum limit of repositories (#21848) 2 years ago
service.go Implement FSFE REUSE for golang files (#21840) 2 years ago
session.go Implement FSFE REUSE for golang files (#21840) 2 years ago
setting.go Add more test directory to exclude dir of air, remove watching templates from air include dir because gitea has internal mechanism (#22246) 2 years ago
setting_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
storage.go Implement FSFE REUSE for golang files (#21840) 2 years ago
storage_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
task.go Implement FSFE REUSE for golang files (#21840) 2 years ago
webhook.go Implement FSFE REUSE for golang files (#21840) 2 years ago