core: log completion of remaining job types

JOB_RESTART and failed JOB_VERIFY_ACTIVE completions were printed to
console but not to the log.
This commit is contained in:
Michal Schmidt
2015-07-21 19:24:20 +02:00
parent 30961fa300
commit 4f29c6fea6
+7 -1
View File
@@ -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) {