mirror of
https://github.com/chatmail/core.git
synced 2026-05-15 12:56:30 +03:00
refactor(job): use Display to print Thread in job_perform()
This commit is contained in:
12
src/job.rs
12
src/job.rs
@@ -736,11 +736,7 @@ fn job_perform(context: &Context, thread: Thread, probe_network: bool) {
|
|||||||
info!(
|
info!(
|
||||||
context,
|
context,
|
||||||
"{}-job #{}, action {} started...",
|
"{}-job #{}, action {} started...",
|
||||||
if thread == Thread::Imap {
|
thread,
|
||||||
"INBOX"
|
|
||||||
} else {
|
|
||||||
"SMTP"
|
|
||||||
},
|
|
||||||
job.job_id,
|
job.job_id,
|
||||||
job.action,
|
job.action,
|
||||||
);
|
);
|
||||||
@@ -825,11 +821,7 @@ fn job_perform(context: &Context, thread: Thread, probe_network: bool) {
|
|||||||
info!(
|
info!(
|
||||||
context,
|
context,
|
||||||
"{}-job #{} not succeeded on try #{}, retry in {} seconds.",
|
"{}-job #{} not succeeded on try #{}, retry in {} seconds.",
|
||||||
if thread == Thread::Imap {
|
thread,
|
||||||
"INBOX"
|
|
||||||
} else {
|
|
||||||
"SMTP"
|
|
||||||
},
|
|
||||||
job.job_id as u32,
|
job.job_id as u32,
|
||||||
tries,
|
tries,
|
||||||
time_offset
|
time_offset
|
||||||
|
|||||||
Reference in New Issue
Block a user