]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: include unit in path state transition debug logging. 548/head
authorVito Caputo <vito.caputo@coreos.com>
Fri, 10 Jul 2015 23:40:46 +0000 (16:40 -0700)
committerVito Caputo <vito.caputo@coreos.com>
Fri, 10 Jul 2015 23:40:46 +0000 (16:40 -0700)
src/core/path.c

index 6d26d89e82dc7f84545b7ea41deb1d167a495f06..20995d920c76d6d7d1d94c68b1984b26e1f95936 100644 (file)
@@ -426,7 +426,7 @@ static void path_set_state(Path *p, PathState state) {
                 path_unwatch(p);
 
         if (state != old_state)
-                log_debug("Changed %s -> %s", path_state_to_string(old_state), path_state_to_string(state));
+                log_unit_debug(UNIT(p), "Changed %s -> %s", path_state_to_string(old_state), path_state_to_string(state));
 
         unit_notify(UNIT(p), state_translation_table[old_state], state_translation_table[state], true);
 }