]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: be more verbose when NameOwnerChanged subscriptions fail 1749/head
authorDaniel Mack <daniel@zonque.org>
Thu, 15 Oct 2015 15:39:14 +0000 (17:39 +0200)
committerDaniel Mack <daniel@zonque.org>
Mon, 2 Nov 2015 09:14:35 +0000 (10:14 +0100)
src/core/dbus.c
src/core/unit.c

index 834745aeb5954d2cf28b52e62217bb8a0ef208d6..6c44b28adff20f1036edcd205df216a30c4cd8bd 100644 (file)
@@ -784,7 +784,7 @@ static int bus_setup_api(Manager *m, sd_bus *bus) {
         HASHMAP_FOREACH_KEY(u, name, m->watch_bus, i) {
                 r = unit_install_bus_match(u, bus, name);
                 if (r < 0)
-                        log_error_errno(r, "Failed to subscribe to NameOwnerChanged signal: %m");
+                        log_error_errno(r, "Failed to subscribe to NameOwnerChanged signal for '%s': %m", name);
         }
 
         r = sd_bus_add_match(
index f5ec630de2eb464b65611bcfbcea7e6a75a806fd..6c130d4cd16eaf99f4bae081602842ec52445338 100644 (file)
@@ -2511,7 +2511,7 @@ int unit_watch_bus_name(Unit *u, const char *name) {
                  * Otherwise, just put the name in the list. bus_setup_api() will take care later. */
                 r = unit_install_bus_match(u, u->manager->api_bus, name);
                 if (r < 0)
-                        return log_warning_errno(r, "Failed to subscribe to NameOwnerChanged signal: %m");
+                        return log_warning_errno(r, "Failed to subscribe to NameOwnerChanged signal for '%s': %m", name);
         }
 
         r = hashmap_put(u->manager->watch_bus, name, u);