mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-06 16:36:51 +00:00
fix(logentry): reduce log level for response entries
This commit is contained in:
@@ -100,13 +100,7 @@ func (l *requestLoggerEntry) Write(status, bytes int, _ http.Header, elapsed tim
|
||||
}
|
||||
|
||||
entry := l.Logger.WithFields(fields)
|
||||
|
||||
switch {
|
||||
case status >= 400:
|
||||
entry.Infof(msg)
|
||||
default:
|
||||
entry.Debugf(msg)
|
||||
}
|
||||
entry.Debugf(msg)
|
||||
}
|
||||
|
||||
func (l *requestLoggerEntry) Panic(v interface{}, _ []byte) {
|
||||
|
||||
Reference in New Issue
Block a user