Fix: zerologs default log level is trace

This commit is contained in:
kayos@tcp.direct 2022-07-28 23:53:12 -07:00
parent 9a0f97a4c0
commit 4a1123dc65
Signed by: kayos
GPG Key ID: 4B841471B4BEE979

View File

@ -319,6 +319,7 @@ func processOpts() {
func associateExportedVariables() {
processOpts()
zerolog.SetGlobalLevel(zerolog.InfoLevel)
// We set exported variables here so that it tracks when accessed from other packages.
if Debug || forceDebug {
zerolog.SetGlobalLevel(zerolog.DebugLevel)