]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bus-util: add log message when exiting because of idle 33045/head
authorLennart Poettering <lennart@poettering.net>
Wed, 8 May 2024 08:39:29 +0000 (10:39 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 12 Jun 2024 10:53:54 +0000 (12:53 +0200)
src/shared/bus-util.c

index 544494b3f80e1f4f06a8d13ebbf0095ede996303..e3182e124f418317abab908164e32cf0a8f356a6 100644 (file)
@@ -148,6 +148,8 @@ int bus_event_loop_with_idle(
                         return r;
 
                 if (r == 0 && !exiting && idle) {
+                        log_debug("Idle for %s, exiting.", FORMAT_TIMESPAN(timeout, 1));
+
                         /* Inform the service manager that we are going down, so that it will queue all
                          * further start requests, instead of assuming we are still running. */
                         (void) sd_notify(false, NOTIFY_STOPPING);