MCPcopy
hub / github.com/redis/go-redis / IsValid

Method IsValid

internal/log.go:65–67  ·  view source on GitHub ↗

IsValid returns true if the log level is valid

()

Source from the content-addressed store, hash-verified

63
64// IsValid returns true if the log level is valid
65func (l LogLevelT) IsValid() bool {
66 return l >= LogLevelError && l <= LogLevelDebug
67}
68
69func (l LogLevelT) WarnOrAbove() bool {
70 return l >= LogLevelWarn

Callers 3

TestLogLevel_IsValidFunction · 0.45
ScanSliceFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestLogLevel_IsValidFunction · 0.36