Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Mar 28, 2018
1 parent cbe38f5 commit b895445
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/usb_moded-dbus.c
Expand Up @@ -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) ) {
Expand Down

0 comments on commit b895445

Please sign in to comment.