MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / ErrorfCtx

Function ErrorfCtx

base/logging.go:161–167  ·  view source on GitHub ↗

ErrorfCtx logs the given formatted string and args to the error log level and given log key.

(ctx context.Context, format string, args ...any)

Source from the content-addressed store, hash-verified

159
160// ErrorfCtx logs the given formatted string and args to the error log level and given log key.
161func ErrorfCtx(ctx context.Context, format string, args ...any) {
162 // no-op call to enable golang.org/x/tools/go/analysis/passes/printf checking in go vet
163 if false {
164 _ = fmt.Sprintf(format, args...)
165 }
166 logTo(ctx, LevelError, KeyAll, format, args...)
167}
168
169// WarnfCtx logs the given formatted string and args to the warn log level and given log key.
170func WarnfCtx(ctx context.Context, format string, args ...any) {

Callers 15

ValidForMethod · 0.92
initOIDCClientMethod · 0.92
standardDiscoveryMethod · 0.92
NewSyncRunnerFunction · 0.92
processEventMethod · 0.92
ToStartupConfigMethod · 0.92
setupServerConfigFunction · 0.92
writeErrorMethod · 0.92
setGlobalConfigFunction · 0.92
asyncDatabaseOnlineMethod · 0.92
TakeDbOnlineMethod · 0.92

Calls 1

logToFunction · 0.85

Tested by 4

renderJSONFunction · 0.74
authHandlerMethod · 0.74
TestLogFlushFunction · 0.74