Skip to content

Commit

Permalink
feat(cloudrequestlog): map Unimplemented to Warning
Browse files Browse the repository at this point in the history
Not an error actionable by the service owner.
  • Loading branch information
odsod committed Dec 7, 2023
1 parent de1c732 commit b06fd7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cloudrequestlog/codetolevel.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ func CodeToLevel(code codes.Code) zapcore.Level {
codes.Canceled,
codes.Aborted,
codes.Unavailable,
codes.ResourceExhausted:
codes.ResourceExhausted,
codes.Unimplemented:
return zap.WarnLevel
default:
return zap.ErrorLevel
Expand Down

0 comments on commit b06fd7b

Please sign in to comment.