MCPcopy
hub / github.com/devtron-labs/devtron / Error

Method Error

util/cron/CronLogger.go:35–41  ·  view source on GitHub ↗
(err error, msg string, keysAndValues ...interface{})

Source from the content-addressed store, hash-verified

33}
34
35func (impl *CronLoggerImpl) Error(err error, msg string, keysAndValues ...interface{}) {
36 if msg == PANIC {
37 metrics.IncPanicRecoveryCount("cron", "", "", "")
38 }
39 keysAndValues = append([]interface{}{"err", err}, keysAndValues...)
40 impl.logger.Errorw(constants.PanicLogIdentifier+": "+msg, keysAndValues...)
41}
42
43func NewCronLoggerImpl(logger *zap.SugaredLogger) *CronLoggerImpl {
44 return &CronLoggerImpl{logger: logger}

Calls

no outgoing calls

Tested by

no test coverage detected