From da174eae7106a1d08297be66dfee646b81074161 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sat, 21 Dec 2019 04:15:34 +0300 Subject: [PATCH] refactor(job): use Display to print Thread in job_perform() --- src/job.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/job.rs b/src/job.rs index 621b3f041..a590e1e13 100644 --- a/src/job.rs +++ b/src/job.rs @@ -736,11 +736,7 @@ fn job_perform(context: &Context, thread: Thread, probe_network: bool) { info!( context, "{}-job #{}, action {} started...", - if thread == Thread::Imap { - "INBOX" - } else { - "SMTP" - }, + thread, job.job_id, job.action, ); @@ -825,11 +821,7 @@ fn job_perform(context: &Context, thread: Thread, probe_network: bool) { info!( context, "{}-job #{} not succeeded on try #{}, retry in {} seconds.", - if thread == Thread::Imap { - "INBOX" - } else { - "SMTP" - }, + thread, job.job_id as u32, tries, time_offset