MCPcopy
hub / github.com/CodisLabs/codis / isDisabled

Method isDisabled

pkg/utils/log/log.go:187–189  ·  view source on GitHub ↗
(t LogType)

Source from the content-addressed store, hash-verified

185}
186
187func (l *Logger) isDisabled(t LogType) bool {
188 return t != TYPE_PANIC && !l.level.Test(t)
189}
190
191func (l *Logger) isTraceEnabled(t LogType) bool {
192 return t == TYPE_PANIC || l.trace.Test(t)

Callers 15

ErrorMethod · 0.95
ErrorfMethod · 0.95
ErrorErrorMethod · 0.95
ErrorErrorfMethod · 0.95
WarnMethod · 0.95
WarnfMethod · 0.95
WarnErrorMethod · 0.95
WarnErrorfMethod · 0.95
InfoMethod · 0.95
InfofMethod · 0.95
InfoErrorMethod · 0.95
InfoErrorfMethod · 0.95

Calls 1

TestMethod · 0.80

Tested by

no test coverage detected