core: use log_unit_debug in *_set_state
This commit is contained in:
+2
-1
@@ -99,7 +99,8 @@ static void scope_set_state(Scope *s, ScopeState state) {
|
||||
}
|
||||
|
||||
if (state != old_state)
|
||||
log_debug("%s changed %s -> %s", UNIT(s)->id, scope_state_to_string(old_state), scope_state_to_string(state));
|
||||
log_unit_debug(UNIT(s), "Changed %s -> %s",
|
||||
scope_state_to_string(old_state), scope_state_to_string(state));
|
||||
|
||||
unit_notify(UNIT(s), state_translation_table[old_state], state_translation_table[state], /* reload_success = */ true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user