fix: only debug logging when specified

This commit is contained in:
Greg T. Wallace 2024-02-03 14:05:21 -05:00
parent 8d0757b553
commit 15d8996b48

View file

@ -45,7 +45,9 @@ func Start(args []string) {
err := app.getConfig(args) err := app.getConfig(args)
// if debug logging, make real debug logger // if debug logging, make real debug logger
app.debugLogger = log.New(os.Stdout, "debug: ", 0) if app.config.debugLogging != nil && *app.config.debugLogging {
app.debugLogger = log.New(os.Stdout, "debug: ", 0)
}
// deal with config err (after logger re-init) // deal with config err (after logger re-init)
if err != nil { if err != nil {