-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switches to gofumpt for code formatting instead of gofmt. This is a slightly stricter formatter and addresses common nits such as extraneous empty lines at start and end of functions, missing empty lines between functions, unnecessary or missing var groups, etc.
- Loading branch information
Showing
7 changed files
with
28 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,16 +36,14 @@ const ( | |
grpcLvlFatal | ||
) | ||
|
||
var ( | ||
// _grpcToZapLevel maps gRPC log levels to zap log levels. | ||
// See https://pkg.go.dev/go.uber.org/[email protected]/zapcore#Level | ||
_grpcToZapLevel = map[int]zapcore.Level{ | ||
grpcLvlInfo: zapcore.InfoLevel, | ||
grpcLvlWarn: zapcore.WarnLevel, | ||
grpcLvlError: zapcore.ErrorLevel, | ||
grpcLvlFatal: zapcore.FatalLevel, | ||
} | ||
) | ||
// _grpcToZapLevel maps gRPC log levels to zap log levels. | ||
// See https://pkg.go.dev/go.uber.org/[email protected]/zapcore#Level | ||
var _grpcToZapLevel = map[int]zapcore.Level{ | ||
grpcLvlInfo: zapcore.InfoLevel, | ||
grpcLvlWarn: zapcore.WarnLevel, | ||
grpcLvlError: zapcore.ErrorLevel, | ||
grpcLvlFatal: zapcore.FatalLevel, | ||
} | ||
|
||
// An Option overrides a Logger's default configuration. | ||
type Option interface { | ||
|