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

This commit is contained in:
Marcus Efraimsson 2022-09-15 14:08:59 +02:00 committed by GitHub
parent b8e72d6173
commit cc583c5d87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: