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

Function Error

internal/channelz/logging.go:62–67  ·  view source on GitHub ↗

Error 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

60
61// Error logs and adds a trace event if channelz is on.
62func Error(l grpclog.DepthLoggerV2, e Entity, args ...any) {
63 AddTraceEvent(l, e, 1, &TraceEvent{
64 Desc: fmt.Sprint(args...),
65 Severity: CtError,
66 })
67}
68
69// Errorf logs and adds a trace event if channelz is on.
70func Errorf(l grpclog.DepthLoggerV2, e Entity, format string, args ...any) {

Callers 3

sendResponseMethod · 0.92
startHealthCheckMethod · 0.92
healthListenerRegFnMethod · 0.92

Calls 1

AddTraceEventFunction · 0.85

Tested by

no test coverage detected