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

Method WarnErrorf

pkg/utils/log/log.go:286–293  ·  view source on GitHub ↗
(err error, format string, v ...interface{})

Source from the content-addressed store, hash-verified

284}
285
286func (l *Logger) WarnErrorf(err error, format string, v ...interface{}) {
287 t := TYPE_WARN
288 if l.isDisabled(t) {
289 return
290 }
291 s := fmt.Sprintf(format, v...)
292 l.output(1, err, t, s)
293}
294
295func (l *Logger) Info(v ...interface{}) {
296 t := TYPE_INFO

Callers 15

NewFunction · 0.80
rewatchSentinelsMethod · 0.80
acceptConnMethod · 0.80
CloseMethod · 0.80
RewatchMethod · 0.80
StartMethod · 0.80
startMetricsReporterMethod · 0.80
startMetricsInfluxdbMethod · 0.80
startMetricsStatsdMethod · 0.80
KeepAliveMethod · 0.80
loopReaderMethod · 0.80
loopWriterMethod · 0.80

Calls 2

isDisabledMethod · 0.95
outputMethod · 0.95

Tested by

no test coverage detected