MCPcopy
hub / github.com/grpc/grpc-go / Warningf

Method Warningf

internal/grpclog/prefix_logger.go:49–56  ·  view source on GitHub ↗

Warningf does warning logging.

(format string, args ...any)

Source from the content-addressed store, hash-verified

47
48// Warningf does warning logging.
49func (pl *PrefixLogger) Warningf(format string, args ...any) {
50 if pl != nil {
51 format = pl.prefix + format
52 pl.logger.WarningDepth(1, fmt.Sprintf(format, args...))
53 return
54 }
55 grpclog.WarningDepth(1, fmt.Sprintf(format, args...))
56}
57
58// Errorf does error logging.
59func (pl *PrefixLogger) Errorf(format string, args ...any) {

Callers

nothing calls this directly

Calls 2

WarningDepthFunction · 0.92
WarningDepthMethod · 0.65

Tested by

no test coverage detected