Skip to content

Commit

Permalink
Fix error logging in server.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Oct 14, 2020
1 parent 992044d commit 4e426c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func (s *Manager) updateSchedulesOfWorker(c *gin.Context) {
curStatus, err := s.adapter.GetMirrorStatus(workerID, mirrorName)
s.rwmu.RUnlock()
if err != nil {
err = fmt.Errorf("failed to get job %s of worker %s: %s",
logger.Errorf("failed to get job %s of worker %s: %s",
mirrorName, workerID, err.Error(),
)
continue
Expand Down

0 comments on commit 4e426c8

Please sign in to comment.