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:
commit
f2db89c99c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue