core: use log_unit_debug in *_set_state

This commit is contained in:
Mike Yuan
2024-04-07 10:20:39 +01:00
committed by Luca Boccassi
parent 9dd174dc23
commit b7e4e152cf
3 changed files with 14 additions and 16 deletions
+2 -1
View File
@@ -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);
}