Better logging message for job deletion

The logging message printed for successful job completion said that the
job "cannot be retried" even when it does not need to be retried.
This commit is contained in:
Alexander Krotov
2019-12-23 03:16:47 +03:00
parent 76d03f7fd2
commit e203901224

View File

@@ -873,10 +873,8 @@ fn job_perform(context: &Context, thread: Thread, probe_network: bool) {
// to give other jobs a chance being tried at least once.
break;
} else {
info!(
context,
"{} removes job {} as it cannot be retried", thread, job
);
// Job finished successfully or cannot be retried.
info!(context, "{} removes job {}", thread, job);
job.delete(context);
}
}