summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-10-28 16:06:50 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-10-28 16:06:50 +0100
commit9c88a8a55adf7779039504fa77d74ec80d658c40 (patch)
treecd50453b4a2d3dd64e876afcedf42eed2a81a51b /commands
parent95e72f5e8e4634fbbb2ea7ece2156487230ad1d4 (diff)
common/loggers: Make sure the global logger also gets colored labels
See #4414
Diffstat (limited to 'commands')
-rw-r--r--commands/hugo.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index ce11626eb..ffc6f0228 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -162,10 +162,7 @@ func (c *commandeer) createLogger(cfg config.Provider, running bool) (*loggers.L
}
}
- // The global logger is used in some few cases.
- jww.SetLogOutput(logHandle)
- jww.SetLogThreshold(logThreshold)
- jww.SetStdoutThreshold(stdoutThreshold)
+ loggers.InitGlobalLogger(stdoutThreshold, logThreshold, outHandle, logHandle)
helpers.InitLoggers()
return loggers.NewLogger(stdoutThreshold, logThreshold, outHandle, logHandle, running), nil