Commit 325fd27e authored by spiiroin's avatar spiiroin

[debug] Do diagnostic logging for each D-Bus signal broadcast

When debugging order and timing of issues related to several processes
it is handy to have signals emitted by usb-moded in the journal along
with the other related logging.
Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
parent 7ea43c3b
......@@ -54,7 +54,8 @@ extern gboolean rescue_mode;
*/
static void usb_moded_send_config_signal(const char *section, const char *key, const char *value)
{
log_debug(USB_MODE_CONFIG_SIGNAL_NAME ": %s %s %s\n", section, key, value);
log_debug("broadcast signal %s(%s, %s, %s)\n", USB_MODE_CONFIG_SIGNAL_NAME, section, key, value);
if( !have_service_name )
{
log_err("config notification without service: [%s] %s=%s",
......@@ -603,6 +604,8 @@ static int usb_moded_dbus_signal(const char *signal_type, const char *content)
int result = 1;
DBusMessage* msg = 0;
log_debug("broadcast signal %s(%s)\n", signal_type, content);
if( !have_service_name )
{
log_err("sending signal without service: %s(%s)",
......
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