fix: change web requests log level to debug
This commit is contained in:
parent
ad63b8b1b4
commit
9f42e330b4
1 changed files with 1 additions and 5 deletions
|
|
@ -40,11 +40,7 @@ func RequestLogger(next http.Handler) http.Handler {
|
||||||
case status >= 400:
|
case status >= 400:
|
||||||
log.Warn(logArgs...)
|
log.Warn(logArgs...)
|
||||||
default:
|
default:
|
||||||
if log.CurrentLevel() >= log.LevelDebug {
|
log.Debug(logArgs...)
|
||||||
log.Debug(logArgs...)
|
|
||||||
} else {
|
|
||||||
log.Info(logArgs...)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue