0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 22:04:32 +01:00
gitea/modules
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>
2023-01-01 22:00:33 +08:00
..
activitypub Remove deprecated packages & staticcheck fixes (#22012) 2022-12-02 17:06:23 -05:00
analyze
auth
avatar
base
cache
charset Ensure that plain files are rendered correctly even when containing ambiguous characters (#22017) 2022-12-17 22:22:25 +02:00
container
context refactor auth interface to return error when verify failure (#22119) 2022-12-28 13:53:28 +08:00
csv
doctor Add doctor command for full GC of LFS (#21978) 2022-12-15 20:44:16 +00:00
emoji
eventsource Move convert package to services (#22264) 2022-12-29 10:57:15 +08:00
generate
git Use complete SHA to create and query commit status (#22244) 2022-12-27 21:12:49 +08:00
gitgraph
graceful
hcaptcha
highlight
hostmatcher
html
httpcache
httplib
indexer refactor some functions to support ctx as first parameter (#21878) 2022-12-03 10:48:26 +08:00
issue/template Use path not filepath in template filenames (#21993) 2022-12-02 07:56:51 +08:00
json Update gitea-vet to check FSFE REUSE (#22004) 2022-12-02 22:14:57 +08:00
lfs
log Update go dev dependencies (#22064) 2022-12-08 16:21:37 +08:00
markup Remove deadcode (#22245) 2022-12-27 09:15:35 +08:00
mcaptcha
metrics
migration
mirror
nosql
notification Move convert package to services (#22264) 2022-12-29 10:57:15 +08:00
options
packages Use ErrInvalidArgument in packages (#22268) 2022-12-31 12:49:37 +01:00
paginator Update gitea-vet to check FSFE REUSE (#22004) 2022-12-02 22:14:57 +08:00
password
pprof
private
process
proxy
proxyprotocol
public
queue Correctly handle select on multiple channels in Queues (#22146) 2022-12-30 02:06:47 +02:00
recaptcha
references
regexplru
repository Rename almost all Ctx functions (#22071) 2022-12-10 10:46:31 +08:00
secret
session Update gitea-vet to check FSFE REUSE (#22004) 2022-12-02 22:14:57 +08:00
setting Reminder for no more logs to console (#22282) 2023-01-01 22:00:33 +08:00
sitemap Fix sitemap (#22272) 2022-12-30 23:31:00 +08:00
ssh
storage Local storage should not store files as executable (#22162) 2022-12-19 08:50:36 +08:00
structs Add sync_on_commit option for push mirrors api (#22271) 2022-12-30 19:22:51 +08:00
svg
sync
system
templates refactor some functions to support ctx as first parameter (#21878) 2022-12-03 10:48:26 +08:00
test refactor some functions to support ctx as first parameter (#21878) 2022-12-03 10:48:26 +08:00
timeutil Check for zero time instant in TimeStamp.IsZero() (#22171) 2022-12-20 10:04:55 +08:00
translation
typesniffer
updatechecker
upload
uri
user
util Use ErrInvalidArgument in packages (#22268) 2022-12-31 12:49:37 +01:00
validation
watcher
web refactor bind functions based on generics (#22055) 2022-12-12 16:09:26 +08:00