diff --git a/resume.go b/resume.go index 1f312d5..604bfdc 100644 --- a/resume.go +++ b/resume.go @@ -72,6 +72,9 @@ func ResumeTasks() (tasks []*OD, err error) { } func resumeQueue(id uint64) (od *OD, err error) { + logrus.WithField("id", id). + Info("Found unfinished") + fPath := filepath.Join("queue", strconv.FormatUint(id, 10)) // Try to find pause file @@ -111,6 +114,9 @@ func resumeQueue(id uint64) (od *OD, err error) { od.WCtx.Queue = bq + logrus.WithField("id", id). + Info("Resuming task") + return od, nil }