mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
commands, helpers: Add correct verbose log level to the global loggers
We still use those in some cases.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user