From b895445f7b24b7f0e9533a1367a9c92aa8137a38 Mon Sep 17 00:00:00 2001 From: Simo Piiroinen Date: Wed, 28 Mar 2018 12:05:44 +0300 Subject: [PATCH] [dbus] Log incoming D-Bus messages in verbose mode When debugging it can be useful to get visibility to requests and signals usb-moded receives over D-Bus. Signed-off-by: Simo Piiroinen --- src/usb_moded-dbus.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/usb_moded-dbus.c b/src/usb_moded-dbus.c index 3a2e685..06adcdd 100644 --- a/src/usb_moded-dbus.c +++ b/src/usb_moded-dbus.c @@ -188,6 +188,11 @@ static DBusHandlerResult msg_handler(DBusConnection *const connection, DBusMessa if(!interface || !member || !object) goto EXIT; + log_debug("DBUS %s %s.%s from %s", + dbus_message_type_to_string(type), + interface, member, + dbus_message_get_sender(msg) ?: "N/A"); + if( type == DBUS_MESSAGE_TYPE_SIGNAL ) { if( !strcmp(interface, INIT_DONE_INTERFACE) && !strcmp(member, INIT_DONE_SIGNAL) ) {