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

Function InfofCtx

base/logging.go:179–185  ·  view source on GitHub ↗

InfofCtx logs the given formatted string and args to the info log level and given log key.

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

Source from the content-addressed store, hash-verified

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) {
180 // no-op call to enable golang.org/x/tools/go/analysis/passes/printf checking in go vet
181 if false {
182 _ = fmt.Sprintf(format, args...)
183 }
184 logTo(ctx, LevelInfo, logKey, format, args...)
185}
186
187// DebugfCtx logs the given formatted string and args to the debug log level with an optional log key.
188func DebugfCtx(ctx context.Context, logKey LogKey, format string, args ...any) {

Callers 15

GetProviderForIssuerMethod · 0.92
DiscoverConfigMethod · 0.92
standardDiscoveryMethod · 0.92
generateVerifierMethod · 0.92
verifyTokenMethod · 0.92
RebuildRolesMethod · 0.92
SaveMethod · 0.92
InvalidateChannelsMethod · 0.92
InvalidateRolesMethod · 0.92

Calls 1

logToFunction · 0.85

Tested by 7

TestCacheRaceFunction · 0.74
TestLogFlushFunction · 0.74
TestBlipCorrelationIDFunction · 0.74
RequireLogMessageFunction · 0.56
TestRedactedLogFuncsFunction · 0.56