Chore: Change default log level for errutil.CoreStatus (#55199)

pull/55316/head
Marcus Efraimsson 3 years ago committed by GitHub
parent b8e72d6173
commit cc583c5d87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      pkg/util/errutil/status.go

@ -88,21 +88,21 @@ func (s CoreStatus) HTTPStatus() int {
func (s CoreStatus) LogLevel() LogLevel {
switch s {
case StatusUnauthorized:
return LevelInfo
return LevelDebug
case StatusForbidden:
return LevelInfo
return LevelDebug
case StatusNotFound:
return LevelDebug
case StatusTimeout:
return LevelInfo
return LevelDebug
case StatusTooManyRequests:
return LevelInfo
return LevelDebug
case StatusBadRequest:
return LevelInfo
return LevelDebug
case StatusValidationFailed:
return LevelInfo
return LevelDebug
case StatusNotImplemented:
return LevelError
return LevelDebug
case StatusUnknown, StatusInternal:
return LevelError
default:

Loading…
Cancel
Save