(err error, msg string, keysAndValues ...interface{})
| 33 | } |
| 34 | |
| 35 | func (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 | |
| 43 | func NewCronLoggerImpl(logger *zap.SugaredLogger) *CronLoggerImpl { |
| 44 | return &CronLoggerImpl{logger: logger} |
no outgoing calls
no test coverage detected