summaryrefslogtreecommitdiffstats
path: root/src/core/scope.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/scope.c')
-rw-r--r--src/core/scope.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/scope.c b/src/core/scope.c
index 6d8d4af56d..151b8989a6 100644
--- a/src/core/scope.c
+++ b/src/core/scope.c
@@ -240,11 +240,7 @@ static void scope_enter_dead(Scope *s, ScopeResult f) {
if (s->result == SCOPE_SUCCESS)
s->result = f;
- if (s->result == SCOPE_SUCCESS)
- unit_log_success(UNIT(s));
- else
- unit_log_failure(UNIT(s), scope_result_to_string(s->result));
-
+ unit_log_result(UNIT(s), s->result == SCOPE_SUCCESS, scope_result_to_string(s->result));
scope_set_state(s, s->result != SCOPE_SUCCESS ? SCOPE_FAILED : SCOPE_DEAD);
}