mirror of
https://github.com/systemd/systemd.git
synced 2025-03-22 06:50:18 +03:00
core: add trigger to path unit debug log
Useful for debugging, given it's already logging and the trigger is known, add it
This commit is contained in:
parent
f89d4c5f10
commit
6566b4306a
@ -591,7 +591,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;
|
||||
}
|
||||
@ -608,7 +608,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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user