chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: fix %h, %s, %p handling in templates in user session
[elogind.git]
/
src
/
core
/
unit.c
diff --git
a/src/core/unit.c
b/src/core/unit.c
index ae43545c6fd00e91109712c258778d9e1c656fe8..99e1c27948cfffc01b711e3bd4c7e4bd4463ebc6 100644
(file)
--- a/
src/core/unit.c
+++ b/
src/core/unit.c
@@
-1023,7
+1023,7
@@
static void unit_status_log_starting_stopping_reloading(Unit *u, JobType t) {
SD_MESSAGE_UNIT_RELOADING;
log_struct(LOG_INFO,
SD_MESSAGE_UNIT_RELOADING;
log_struct(LOG_INFO,
-
"MESSAGE_ID=" SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL
(mid),
+
MESSAGE_ID
(mid),
"UNIT=%s", u->id,
"MESSAGE=%s", buf,
NULL);
"UNIT=%s", u->id,
"MESSAGE=%s", buf,
NULL);
@@
-1438,7
+1438,10
@@
void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns, bool reload_su
check_unneeded_dependencies(u);
if (ns != os && ns == UNIT_FAILED) {
check_unneeded_dependencies(u);
if (ns != os && ns == UNIT_FAILED) {
- log_notice("Unit %s entered failed state.", u->id);
+ log_struct(LOG_NOTICE,
+ "MESSAGE=Unit %s entered failed state", u->id,
+ "UNIT=%s", u->id,
+ NULL);
unit_trigger_on_failure(u);
}
}
unit_trigger_on_failure(u);
}
}