From: Michal Schmidt Date: Tue, 21 Jul 2015 14:20:18 +0000 (+0200) Subject: core: log completion of remaining job types X-Git-Tag: v223~73^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f29c6fea6a6c5c2c9406ad091cd6f56da21e2cb;p=thirdparty%2Fsystemd.git core: log completion of remaining job types JOB_RESTART and failed JOB_VERIFY_ACTIVE completions were printed to console but not to the log. --- diff --git a/src/core/job.c b/src/core/job.c index e3ad1ddc734..0f0fe1994a7 100644 --- a/src/core/job.c +++ b/src/core/job.c @@ -735,7 +735,7 @@ static void job_log_status_message(Unit *u, JobType t, JobResult result) { "RESULT=%s", job_result_to_string(result), NULL); - } else if (t == JOB_STOP) + } else if (t == JOB_STOP || t == JOB_RESTART) log_struct(result == JOB_DONE ? LOG_INFO : LOG_ERR, LOG_MESSAGE_ID(SD_MESSAGE_UNIT_STOPPED), LOG_UNIT_ID(u), @@ -750,6 +750,12 @@ static void job_log_status_message(Unit *u, JobType t, JobResult result) { LOG_MESSAGE("%s", buf), "RESULT=%s", job_result_to_string(result), NULL); + else + log_struct(result == JOB_DONE ? LOG_INFO : LOG_ERR, + LOG_UNIT_ID(u), + LOG_MESSAGE("%s", buf), + "RESULT=%s", job_result_to_string(result), + NULL); } static void job_emit_status_message(Unit *u, JobType t, JobResult result) {