Skip to content

Commit

Permalink
fix: rename r to c
Browse files Browse the repository at this point in the history
  • Loading branch information
GGXXLL committed Mar 17, 2021
1 parent 0952d03 commit b5eefd4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cronopts/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ type CronLogAdapter struct {
}

// Info implements cron.Logger
func (r CronLogAdapter) Info(msg string, keysAndValues ...interface{}) {
_ = level.Info(r.Logging).Log(append([]interface{}{"msg", msg}, keysAndValues...)...)
func (c CronLogAdapter) Info(msg string, keysAndValues ...interface{}) {
_ = level.Info(c.Logging).Log(append([]interface{}{"msg", msg}, keysAndValues...)...)
}

// Error implements cron.Logger
func (r CronLogAdapter) Error(err error, msg string, keysAndValues ...interface{}) {
_ = level.Error(r.Logging).Log(append([]interface{}{"msg", msg, "err", err}, keysAndValues...)...)
func (c CronLogAdapter) Error(err error, msg string, keysAndValues ...interface{}) {
_ = level.Error(c.Logging).Log(append([]interface{}{"msg", msg, "err", err}, keysAndValues...)...)
}

0 comments on commit b5eefd4

Please sign in to comment.