diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-04-04 11:02:12 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-04-04 15:12:30 +0200 |
commit | 04d80e6e8725dd9d1ee76d7615ae312f995cd7bc (patch) | |
tree | 0793ca8c9ea42f914a5aa79209af4794bf8f7c3a /commands | |
parent | 0802f79e666c7221e8b5580c9ccfbfb538a20b95 (diff) |
commands, helpers: Add correct verbose log level to the global loggers
We still use those in some cases.
Diffstat (limited to 'commands')
-rw-r--r-- | commands/hugo.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index 5a056996d..3d922deff 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -436,6 +436,12 @@ func createLogger(cfg config.Provider) (*jww.Notepad, error) { logThreshold = jww.LevelInfo } + // The global logger is used in some few cases. + jww.SetLogOutput(logHandle) + jww.SetLogThreshold(logThreshold) + jww.SetStdoutThreshold(stdoutThreshold) + helpers.InitLoggers() + return jww.NewNotepad(stdoutThreshold, logThreshold, outHandle, logHandle, "", log.Ldate|log.Ltime), nil } |