[systemd-devel] [PATCH] core: remove duplicate MESSAGE= from log message

Mirco Tischler mt-ml at gmx.de
Thu Apr 25 06:14:57 PDT 2013


This was needed with log_struct_unit() but log_notice_unit() adds it
anyway.
---
 src/core/unit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/unit.c b/src/core/unit.c
index c0c3ce9..b624ca6 100644
--- a/src/core/unit.c
+++ b/src/core/unit.c
@@ -1468,7 +1468,7 @@ void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns, bool reload_su
 
                 if (ns != os && ns == UNIT_FAILED) {
                         log_notice_unit(u->id,
-                                        "MESSAGE=Unit %s entered failed state.", u->id);
+                                        "Unit %s entered failed state.", u->id);
                         unit_start_on_failure(u);
                 }
         }
-- 
1.8.2.1



More information about the systemd-devel mailing list