Resume log messages

This commit is contained in:
Richard Patel 2019-02-03 15:09:49 +01:00
parent 8d68bf1bbc
commit 0b20823ae1
No known key found for this signature in database
GPG Key ID: C268B2BBDA2ABECB

View File

@ -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
}