summaryrefslogtreecommitdiff
path: root/src/core/automount.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/automount.c')
-rw-r--r--src/core/automount.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/automount.c b/src/core/automount.c
index 57e6a985fd..9da3f87fca 100644
--- a/src/core/automount.c
+++ b/src/core/automount.c
@@ -315,7 +315,9 @@ static void automount_enter_dead(Automount *a, AutomountResult f) {
if (a->result == AUTOMOUNT_SUCCESS)
a->result = f;
- if (a->result != AUTOMOUNT_SUCCESS)
+ if (a->result == AUTOMOUNT_SUCCESS)
+ unit_log_success(UNIT(a));
+ else
unit_log_failure(UNIT(a), automount_result_to_string(a->result));
automount_set_state(a, a->result != AUTOMOUNT_SUCCESS ? AUTOMOUNT_FAILED : AUTOMOUNT_DEAD);