Commit b895445f authored by spiiroin's avatar spiiroin

[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: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
parent cbe38f52
......@@ -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) ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment