X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fjob.c;h=706910b695d46df65a7f87bbaf376afad6474d18;hb=81270860a5b8c6794f0c7bac8becfdd0c41a9385;hp=9614642f562e94ef41ef01046502200523c1f941;hpb=877d54e9b09e093c2102f519a84e2a52637ae035;p=elogind.git diff --git a/src/core/job.c b/src/core/job.c index 9614642f5..706910b69 100644 --- a/src/core/job.c +++ b/src/core/job.c @@ -687,6 +687,12 @@ static void job_log_status_message(Unit *u, JobType t, JobResult result) { assert(t >= 0); assert(t < _JOB_TYPE_MAX); + /* Skip this if it goes to the console. since we already print + * to the console anyway... */ + + if (log_on_console()) + return; + format = job_get_status_message_format_try_harder(u, t, result); if (!format) return;