diff options
Diffstat (limited to 'src/core/job.c')
-rw-r--r-- | src/core/job.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/job.c b/src/core/job.c index e3ad1ddc73..0f0fe1994a 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) { |