chiark / gitweb /
systemd: use structured logging for unit changes
[elogind.git] / src / core / unit.c
index 6396bfc09f733e0734112c77147564bbd1531ace..99e1c27948cfffc01b711e3bd4c7e4bd4463ebc6 100644 (file)
@@ -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) {
-                        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);
                 }
         }