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/cmd
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>
3 years ago
..
admin.go Fix missing storage init (#15589) 3 years ago
admin_auth_ldap.go Add restricted user filter to LDAP authentication (#10600) 4 years ago
admin_auth_ldap_test.go Add restricted user filter to LDAP authentication (#10600) 4 years ago
cert.go Add golangci (#6418) 5 years ago
cmd.go Sendmail command (#13079) 4 years ago
convert.go Add --quiet and --verbose to gitea web to control initial logging (#16260) 3 years ago
docs.go Add docs command (#13429) 4 years ago
doctor.go Refactor doctor (#12264) 4 years ago
dump.go dump: Add option to skip LFS/attachment files (#15407) 3 years ago
dump_repo.go Add --quiet and --verbose to gitea web to control initial logging (#16260) 3 years ago
embedded.go Implement "embedded" command to extract static resources (#9982) 4 years ago
embedded_stub.go Implement "embedded" command to extract static resources (#9982) 4 years ago
generate.go Add asymmetric JWT signing (#16010) 3 years ago
hook.go Add tag protection (#15629) 3 years ago
keys.go Add debug option to serv to help debug problems (#9492) 5 years ago
mailer.go Fix send mail (#13312) 4 years ago
manager.go Pause, Resume, Release&Reopen, Add and Remove Logging from command line (#11777) 4 years ago
migrate.go Add --quiet and --verbose to gitea web to control initial logging (#16260) 3 years ago
migrate_storage.go Add --quiet and --verbose to gitea web to control initial logging (#16260) 3 years ago
restore_repo.go Move restore repo to internal router and invoke from command to avoid open the same db file or queues files (#15790) 3 years ago
serv.go add a new internal hook to save ssh log (#15787) 3 years ago
web.go Add --quiet and --verbose to gitea web to control initial logging (#16260) 3 years ago
web_graceful.go Move FCGI req.URL.Path fix-up to the FCGI listener (#15292) 3 years ago
web_letsencrypt.go Fix bound address/port for caddy's certmagic library (see #15848) (#15859) 3 years ago