mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
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:
@@ -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.
|
// to give other jobs a chance being tried at least once.
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
info!(
|
// Job finished successfully or cannot be retried.
|
||||||
context,
|
info!(context, "{} removes job {}", thread, job);
|
||||||
"{} removes job {} as it cannot be retried", thread, job
|
|
||||||
);
|
|
||||||
job.delete(context);
|
job.delete(context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user