Update dependencies (#5518)
This commit is contained in:
10
vendor/go.uber.org/zap/zapgrpc/zapgrpc.go
generated
vendored
10
vendor/go.uber.org/zap/zapgrpc/zapgrpc.go
generated
vendored
@@ -61,6 +61,7 @@ func (f optionFunc) apply(log *Logger) {
|
||||
// WithDebug configures a Logger to print at zap's DebugLevel instead of
|
||||
// InfoLevel.
|
||||
// It only affects the Printf, Println and Print methods, which are only used in the gRPC v1 grpclog.Logger API.
|
||||
//
|
||||
// Deprecated: use grpclog.SetLoggerV2() for v2 API.
|
||||
func WithDebug() Option {
|
||||
return optionFunc(func(logger *Logger) {
|
||||
@@ -146,19 +147,22 @@ type Logger struct {
|
||||
}
|
||||
|
||||
// Print implements grpclog.Logger.
|
||||
// Deprecated: use Info().
|
||||
//
|
||||
// Deprecated: use [Logger.Info].
|
||||
func (l *Logger) Print(args ...interface{}) {
|
||||
l.print.Print(args...)
|
||||
}
|
||||
|
||||
// Printf implements grpclog.Logger.
|
||||
// Deprecated: use Infof().
|
||||
//
|
||||
// Deprecated: use [Logger.Infof].
|
||||
func (l *Logger) Printf(format string, args ...interface{}) {
|
||||
l.print.Printf(format, args...)
|
||||
}
|
||||
|
||||
// Println implements grpclog.Logger.
|
||||
// Deprecated: use Info().
|
||||
//
|
||||
// Deprecated: use [Logger.Info].
|
||||
func (l *Logger) Println(args ...interface{}) {
|
||||
l.print.Println(args...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user