]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
login: suspend - be a bit more explicit when logging 1567/head
authorTom Gundersen <teg@jklm.no>
Wed, 14 Oct 2015 20:22:17 +0000 (22:22 +0200)
committerTom Gundersen <teg@jklm.no>
Wed, 14 Oct 2015 20:25:58 +0000 (22:25 +0200)
When the Suspend method is called, the only log message we write
(unless debugging is enabled) is "Operation finished.". This is
not very helpful when trying to figure out what is going on, so
add what operation we are talking about to the message:
"Operation 'sleep' finished.".

Hat tip to Daniel Aleksandersen for pointing this out.

src/login/logind-dbus.c

index 40d587ddb8123baf4ad2e77cc387a5c1e62e7124..aeedf68e77165e8a560152e1270371aea32c81f4 100644 (file)
@@ -2588,7 +2588,7 @@ int match_job_removed(sd_bus_message *message, void *userdata, sd_bus_error *err
         }
 
         if (m->action_job && streq(m->action_job, path)) {
-                log_info("Operation finished.");
+                log_info("Operation '%s' finished.", inhibit_what_to_string(m->action_what));
 
                 /* Tell people that they now may take a lock again */
                 send_prepare_for(m, m->action_what, false);