summaryrefslogtreecommitdiff
path: root/src/core/path.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/path.c')
-rw-r--r--src/core/path.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/path.c b/src/core/path.c
index a134fc288c..7523bf54f7 100644
--- a/src/core/path.c
+++ b/src/core/path.c
@@ -449,7 +449,9 @@ static void path_enter_dead(Path *p, PathResult f) {
if (p->result == PATH_SUCCESS)
p->result = f;
- if (p->result != PATH_SUCCESS)
+ if (p->result == PATH_SUCCESS)
+ unit_log_success(UNIT(p));
+ else
unit_log_failure(UNIT(p), path_result_to_string(p->result));
path_set_state(p, p->result != PATH_SUCCESS ? PATH_FAILED : PATH_DEAD);