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

Function WarnfCtx

base/logging.go:170–176  ·  view source on GitHub ↗

WarnfCtx logs the given formatted string and args to the warn log level and given log key.

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

Source from the content-addressed store, hash-verified

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) {
171 // no-op call to enable golang.org/x/tools/go/analysis/passes/printf checking in go vet
172 if false {
173 _ = fmt.Sprintf(format, args...)
174 }
175 logTo(ctx, LevelWarn, KeyAll, format, args...)
176}
177
178// InfofCtx logs the given formatted string and args to the info log level and given log key.
179func InfofCtx(ctx context.Context, logKey LogKey, format string, args ...any) {

Callers 15

verifyTokenMethod · 0.92
initUserPrefixMethod · 0.92
InitUserPrefixMethod · 0.92
startDiscoverySyncMethod · 0.92
getPrincipalMethod · 0.92
RebuildRolesMethod · 0.92
RegisterNewUserMethod · 0.92

Calls 1

logToFunction · 0.85

Tested by 5

TestLogFlushFunction · 0.74
BenchmarkRedactOnLogFunction · 0.68
TestRedactedLogFuncsFunction · 0.68