Fix error logging in server.go

This commit is contained in:
jiegec 2020-10-15 07:33:02 +08:00
parent 992044d402
commit 4e426c891e

View File

@ -276,7 +276,7 @@ func (s *Manager) updateSchedulesOfWorker(c *gin.Context) {
curStatus, err := s.adapter.GetMirrorStatus(workerID, mirrorName) curStatus, err := s.adapter.GetMirrorStatus(workerID, mirrorName)
s.rwmu.RUnlock() s.rwmu.RUnlock()
if err != nil { 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(), mirrorName, workerID, err.Error(),
) )
continue continue