Skip to content

Commit

Permalink
Fix panic: caller overwrites field 'cron'.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsh2dsh committed May 2, 2024
1 parent 63b4fe1 commit cf62ee0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions daemon/job/active.go
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,7 @@ func (j *ActiveSide) runPeriodic(ctx context.Context,
case <-ctx.Done():
default:
j.wakeupBusy++
log.WithField("cron", cronSpec).Warn(
"job took longer than its interval")
log.Warn("job took longer than its interval")
}
})
if err != nil {
Expand Down
3 changes: 1 addition & 2 deletions daemon/snapper/periodic.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ func (s *Periodic) runPeriodic(ctx context.Context) {
case <-ctx.Done():
default:
s.wakeupBusy++
log.WithField("cron", cronSpec).Warn(
"job took longer than its interval")
log.Warn("job took longer than its interval")
}
})
if err != nil {
Expand Down

0 comments on commit cf62ee0

Please sign in to comment.