bus-proxy: augment debug message for dropped broadcasts a bit
authorDaniel Mack <daniel@zonque.org>
Mon, 27 Jul 2015 13:41:53 +0000 (15:41 +0200)
committerDaniel Mack <daniel@zonque.org>
Mon, 27 Jul 2015 13:41:53 +0000 (15:41 +0200)
Add the PID we are proxying for, as well as the message's sender and
destination string, to the debug message that is printed when the proxy
drops unmatched broadcasts.

src/bus-proxyd/proxy.c

index 7163d6d..c37b09b 100644 (file)
@@ -733,9 +733,9 @@ static int proxy_process_destination_to_local(Proxy *p) {
         /* discard broadcasts that were not matched by any MATCH rule */
         if (!matched && !sd_bus_message_get_destination(m)) {
                 if (!matched_synthetic)
-                        log_debug("Dropped unmatched broadcast: uid=" UID_FMT " gid=" GID_FMT" message=%s path=%s interface=%s member=%s",
-                                    p->local_creds.uid, p->local_creds.gid, bus_message_type_to_string(m->header->type),
-                                    strna(m->path), strna(m->interface), strna(m->member));
+                        log_debug("Dropped unmatched broadcast: uid=" UID_FMT " gid=" GID_FMT " pid=" PID_FMT " message=%s path=%s interface=%s member=%s sender=%s destination=%s",
+                                  p->local_creds.uid, p->local_creds.gid, p->local_creds.pid, bus_message_type_to_string(m->header->type),
+                                  strna(m->path), strna(m->interface), strna(m->member), strna(m->sender), strna(m->destination));
                 return 1;
         }