diff options
author | Nick Thomas <nick@gitlab.com> | 2021-09-23 10:41:12 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2021-09-23 10:44:31 +0100 |
commit | 4f64306d5118606a2ff464e1994ce8683b52fd15 (patch) | |
tree | 24b741801917ebdaadb9cb05382c37d5d9ae08b2 /internal/logger/logger.go | |
parent | 882c55eabf74eb5996098c9898045099927803a1 (diff) | |
download | gitlab-shell-4f64306d5118606a2ff464e1994ce8683b52fd15.tar.gz |
Respect log-level configuration again
This was lost in the move from Ruby to Go. Restore it now.
Changelog: fixed
Diffstat (limited to 'internal/logger/logger.go')
-rw-r--r-- | internal/logger/logger.go | 1 |
1 files changed, 1 insertions, 0 deletions
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), } } |