Skip to content

Commit

Permalink
Print errors when there are errors
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongkl authored Feb 12, 2023
1 parent aa63323 commit 52cedb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion job/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ func (c *MemoryJobCache) Start(persistWaitTime time.Duration) {
log.Infof("Shutting down....")

// Persist all jobs to database
log.Errorln(c.Persist())
err = c.Persist()
if err != nil {
log.Errorln(err)
}

// Close the database
c.jobDB.Close()
Expand Down

0 comments on commit 52cedb8

Please sign in to comment.