zapgrpc: verbosity level check is incorrect
Author: axwCreated Apr 17, 2026Updated Apr 23, 2026
grpclog has two concepts of log level: severity level, and verbosity level. Severity level is analogous to the zap logger level, verbosity is supplemental.
The LoggerV2.V is documented as follows:
// V reports whether verbosity level l is at least the requested verbose level.
V(l int) boolThe zapgrpc implementation confuses verbosity level for severity level: https://github.com/uber-go/zap/blob/0ab0d5aae5986395e2ca497385d977ccd7cdfc5e/zapgrpc/zapgrpc.go#L234-L237
Source: uber-go/zap