Merge pull request #548 from vcaputo/fix_path_state_debug_msg

core: include unit in path state transition debug logging.
This commit is contained in:
Daniel Mack 2015-07-10 20:42:32 -04:00
commit f2db89c99c

View 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);
}