summaryrefslogtreecommitdiff
path: root/src/core/job.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2015-07-21 16:20:18 +0200
committerMichal Schmidt <mschmidt@redhat.com>2015-07-21 19:24:20 +0200
commit4f29c6fea6a6c5c2c9406ad091cd6f56da21e2cb (patch)
tree5d5e1fe361d66965897e8fc91a81fb44a53e00ba /src/core/job.c
parent30961fa300cad21b50fe47baee523beeadb5d0bc (diff)
core: log completion of remaining job types
JOB_RESTART and failed JOB_VERIFY_ACTIVE completions were printed to console but not to the log.
Diffstat (limited to 'src/core/job.c')
-rw-r--r--src/core/job.c8
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) {