MCPcopy
hub / github.com/grafana/dskit / shouldLog

Function shouldLog

middleware/grpc_logging.go:105–112  ·  view source on GitHub ↗
(ctx context.Context, err error)

Source from the content-addressed store, hash-verified

103}
104
105func shouldLog(ctx context.Context, err error) (bool, string) {
106 var optional OptionalLogging
107 if !errors.As(err, &optional) {
108 return true, ""
109 }
110
111 return optional.ShouldLog(ctx)
112}

Callers 1

Calls 1

ShouldLogMethod · 0.95

Tested by

no test coverage detected