From 15be4c0c3c35abf5645016c9f1fa8264eea82f2d Mon Sep 17 00:00:00 2001
From: Luca Boccassi <luca.boccassi@gmail.com>
Date: Mon, 27 Jan 2025 20:30:16 +0000
Subject: [PATCH 1097/1160] core: add trigger to path unit debug log

Useful for debugging, given it's already logging and the trigger
is known, add it

(cherry picked from commit 6566b4306a65bc7af6ade0cb6887217212925202)
(cherry picked from commit b6b287854aa622083ec25e19e2fac26bd332e693)
(cherry picked from commit d139f17ea1f20633c41af0f77eaf9e4c7b05111d)
---
 src/core/path.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/core/path.c b/src/core/path.c
index cbaefb684d..e3f58dcdcd 100644
--- a/src/core/path.c
+++ b/src/core/path.c
@@ -589,7 +589,7 @@ static void path_enter_waiting(Path *p, bool initial, bool from_trigger_notify)
         }
 
         if (path_check_good(p, initial, from_trigger_notify, &trigger_path)) {
-                log_unit_debug(UNIT(p), "Got triggered.");
+                log_unit_debug(UNIT(p), "Got triggered by '%s'.", trigger_path);
                 path_enter_running(p, trigger_path);
                 return;
         }
@@ -606,7 +606,7 @@ static void path_enter_waiting(Path *p, bool initial, bool from_trigger_notify)
          * recheck */
 
         if (path_check_good(p, false, from_trigger_notify, &trigger_path)) {
-                log_unit_debug(UNIT(p), "Got triggered.");
+                log_unit_debug(UNIT(p), "Got triggered by '%s'.", trigger_path);
                 path_enter_running(p, trigger_path);
                 return;
         }
-- 
2.33.0