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

Function Warningf

internal/channelz/logging.go:54–59  ·  view source on GitHub ↗

Warningf logs and adds a trace event if channelz is on.

(l grpclog.DepthLoggerV2, e Entity, format string, args ...any)

Source from the content-addressed store, hash-verified

52
53// Warningf logs and adds a trace event if channelz is on.
54func Warningf(l grpclog.DepthLoggerV2, e Entity, format string, args ...any) {
55 AddTraceEvent(l, e, 1, &TraceEvent{
56 Desc: fmt.Sprintf(format, args...),
57 Severity: CtWarning,
58 })
59}
60
61// Error logs and adds a trace event if channelz is on.
62func Error(l grpclog.DepthLoggerV2, e Entity, args ...any) {

Callers 7

processUnaryRPCMethod · 0.92
handleStreamMethod · 0.92
ReportErrorMethod · 0.92
shouldRetryMethod · 0.92
createTransportMethod · 0.92
NewSubConnMethod · 0.92

Calls 1

AddTraceEventFunction · 0.85

Tested by

no test coverage detected