diff options
author | Jason Song <i@wolfogre.com> | 2023-01-01 22:00:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-01 22:00:33 +0800 |
commit | f8e93ce4238253c01e3ca36c88eb59979be99d12 (patch) | |
tree | 73b9f510734bec5a443cca6fea5fd15fa01f1440 /services/packages | |
parent | 9c8fc7f6773c71019365a0bb66f6686ba7420fb8 (diff) | |
download | gitea-f8e93ce4238253c01e3ca36c88eb59979be99d12.tar.gz gitea-f8e93ce4238253c01e3ca36c88eb59979be99d12.zip |
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>
Diffstat (limited to 'services/packages')
0 files changed, 0 insertions, 0 deletions