Fix viper log

This commit is contained in:
Nicolas JUHEL
2020-04-16 13:49:07 +02:00
parent 4107c04d30
commit ac0339cac5
2 changed files with 4 additions and 1 deletions

View File

@@ -118,6 +118,9 @@ func setViperLogTrace() {
return
}
jwalterweatherman.SetLogOutput(GetIOWriter(curLevel, "[Log Config Viper]"))
jwalterweatherman.SetStdoutOutput(GetIOWriter(curLevel, "[Std Config Viper]"))
if filetrace {
jwalterweatherman.SetStdoutThreshold(jwalterweatherman.LevelTrace)
return

View File

@@ -119,7 +119,7 @@ func DisableColor() {
// EnableViperLog or not the Gin Logger configuration
func EnableViperLog(enable bool) {
enableVPR = enable
SetLevel(curLevel)
setViperLogTrace()
}
func getFrame() runtime.Frame {