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

Function Warning

internal/channelz/logging.go:46–51  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

44
45// Warning logs and adds a trace event if channelz is on.
46func Warning(l grpclog.DepthLoggerV2, e Entity, args ...any) {
47 AddTraceEvent(l, e, 1, &TraceEvent{
48 Desc: fmt.Sprint(args...),
49 Severity: CtWarning,
50 })
51}
52
53// Warningf logs and adds a trace event if channelz is on.
54func Warningf(l grpclog.DepthLoggerV2, e Entity, format string, args ...any) {

Callers

nothing calls this directly

Calls 1

AddTraceEventFunction · 0.85

Tested by

no test coverage detected