mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-20 20:22:46 +00:00
Fix error logging in server.go
This commit is contained in:
parent
992044d402
commit
4e426c891e
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user