0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-12 06:01:15 +01:00
gitea/modules/setting
zeripath 35f37a3625
Add --quiet and --verbose to gitea web to control initial logging (#16260)
One of the repeatedly reported issues has been that gitea produces too much console
logging during set up even if the console logger is turned off.

Fundamentally this is due to some otherwise very helpful logging that has to occur
before logging is set up. This has come to a head with the merging of #16243 where
otherwise potentially helpful Trace logging in the git module now appears on the
console.

This PR proposes three things:

1. Change the initial default logger to Info not Trace.
2. Change the logging for the AppPath things to Info in recompense.
3. Add two new command line options to gitea web: --quiet and --verbose

`gitea web -q` or `gitea web --quiet` will only log Fatal level initially.
`gitea web -verbose` will log at Trace.

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-06-26 20:56:58 -04:00
..
attachment.go
cache.go
cors.go
cron_test.go
cron.go
database_sqlite.go
database_test.go
database.go
git.go Let package git depend on setting but not opposite (#15241) 2021-06-26 13:28:55 +02:00
indexer_test.go
indexer.go
lfs.go Let package git depend on setting but not opposite (#15241) 2021-06-26 13:28:55 +02:00
log.go
mailer.go
markup.go Add sanitizer rules per renderer (#16110) 2021-06-23 17:09:51 -04:00
migrations.go
mime_type_map.go
oauth2_client.go
picture.go
project.go
queue.go
repository.go Rework repository archive (#14723) 2021-06-23 17:12:38 -04:00
service.go Add Visible modes function from Organisation to Users too (#16069) 2021-06-26 20:53:14 +01:00
session.go
setting_test.go
setting.go Add --quiet and --verbose to gitea web to control initial logging (#16260) 2021-06-26 20:56:58 -04:00
storage_test.go
storage.go Rework repository archive (#14723) 2021-06-23 17:12:38 -04:00
task.go
webhook.go