From e2039012246a0fb40e06021f703deeba9274b4e4 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Mon, 23 Dec 2019 03:16:47 +0300 Subject: [PATCH] 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. --- src/job.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/job.rs b/src/job.rs index b0303a6e4..869ce5aea 100644 --- a/src/job.rs +++ b/src/job.rs @@ -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); } }