From 4f64306d5118606a2ff464e1994ce8683b52fd15 Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Thu, 23 Sep 2021 10:41:12 +0100 Subject: Respect log-level configuration again This was lost in the move from Ruby to Go. Restore it now. Changelog: fixed --- internal/logger/logger.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/logger/logger.go') diff --git a/internal/logger/logger.go b/internal/logger/logger.go index 1165680..748fce0 100644 --- a/internal/logger/logger.go +++ b/internal/logger/logger.go @@ -35,6 +35,7 @@ func buildOpts(cfg *config.Config) []log.LoggerOption { log.WithFormatter(logFmt(cfg.LogFormat)), log.WithOutputName(logFile(cfg.LogFile)), log.WithTimezone(time.UTC), + log.WithLogLevel(cfg.LogLevel), } } -- cgit v1.2.1