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

Function LogDebugEnabled

base/logging.go:391–393  ·  view source on GitHub ↗

LogDebugEnabled returns true if either the console should log at debug level, or if the debugLogger is enabled.

(ctx context.Context, logKey LogKey)

Source from the content-addressed store, hash-verified

389// LogDebugEnabled returns true if either the console should log at debug level,
390// or if the debugLogger is enabled.
391func LogDebugEnabled(ctx context.Context, logKey LogKey) bool {
392 return consoleLogger.Load().shouldLog(ctx, LevelDebug, logKey) || debugLogger.Load().shouldLog(LevelDebug)
393}
394
395// LogTraceEnabled returns true if either the console should log at trace level,
396// or if the traceLogger is enabled.

Callers 7

sendRevisionMethod · 0.92
processEntryMethod · 0.92
_addToCacheMethod · 0.92
HandleEventMethod · 0.92
LogLevelEnabledFunction · 0.85
NewDCPDestFunction · 0.85

Calls 2

LoadMethod · 0.80
shouldLogMethod · 0.45

Tested by

no test coverage detected