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

Method Enabled

base/log_keys.go:128–130  ·  view source on GitHub ↗

Enabled returns true if the given logKey is enabled in keyMask. Always returns true if KeyAll is enabled in keyMask.

(logKey LogKey)

Source from the content-addressed store, hash-verified

126// Enabled returns true if the given logKey is enabled in keyMask.
127// Always returns true if KeyAll is enabled in keyMask.
128func (keyMask *LogKeyMask) Enabled(logKey LogKey) bool {
129 return keyMask.enabled(logKey, true)
130}
131
132// Enabled returns true if the given logKey is enabled in keyMask.
133func (keyMask *LogKeyMask) EnabledExcludingWildcard(logKey LogKey) bool {

Callers 3

StringMethod · 0.95
TestLogKeyFunction · 0.95
TestLogKeyConcurrencyFunction · 0.95

Calls 1

enabledMethod · 0.95

Tested by 2

TestLogKeyFunction · 0.76
TestLogKeyConcurrencyFunction · 0.76