fb7efbf
From d0bf853933a390b2152444a4d449442e696e5990 Mon Sep 17 00:00:00 2001
fb7efbf
From: Vito Caputo <vito.caputo@coreos.com>
fb7efbf
Date: Fri, 10 Jul 2015 16:40:46 -0700
fb7efbf
Subject: [PATCH 09/47] core: include unit in path state transition debug
fb7efbf
 logging.
fb7efbf
fb7efbf
---
fb7efbf
 src/core/path.c | 2 +-
fb7efbf
 1 file changed, 1 insertion(+), 1 deletion(-)
fb7efbf
fb7efbf
diff --git a/src/core/path.c b/src/core/path.c
fb7efbf
index 6d26d89..20995d9 100644
fb7efbf
--- a/src/core/path.c
fb7efbf
+++ b/src/core/path.c
fb7efbf
@@ -426,7 +426,7 @@ static void path_set_state(Path *p, PathState state) {
fb7efbf
                 path_unwatch(p);
fb7efbf
 
fb7efbf
         if (state != old_state)
fb7efbf
-                log_debug("Changed %s -> %s", path_state_to_string(old_state), path_state_to_string(state));
fb7efbf
+                log_unit_debug(UNIT(p), "Changed %s -> %s", path_state_to_string(old_state), path_state_to_string(state));
fb7efbf
 
fb7efbf
         unit_notify(UNIT(p), state_translation_table[old_state], state_translation_table[state], true);
fb7efbf
 }
fb7efbf
-- 
fb7efbf
2.5.0
fb7efbf