[glib] GDBusConnection: Debug messages when receiving signals and method invocations



commit f5cd8ddeaac7e6df484629b7ae54a86ffa155a05
Author: David Zeuthen <davidz redhat com>
Date:   Tue Aug 3 15:36:16 2010 -0400

    GDBusConnection: Debug messages when receiving signals and method invocations
    
    Spell out "RECEIVED SIGNAL" instead of "SIGNAL" to emphasize this is
    about receiving a signal, not emitting one (which is "SIGNAL
    EMISSION"). Also make the "arrows" point in the "right" direction
    ("<<<<" vs ">>>>") - like this:
    
     ========================================================================
     GDBus-debug:Signal:
      <<<< RECEIVED SIGNAL org.freedesktop.DBus.NameOwnerChanged
           on object /org/freedesktop/DBus
           sent by name org.freedesktop.DBus
    
    and
    
     ========================================================================
     GDBus-debug:Incoming:
      <<<< METHOD INVOCATION org.freedesktop.PolicyKit1.Authority.EnumerateTemporaryAuthorizations()
           on object /org/freedesktop/PolicyKit1/Authority
           invoked by name :1.2176
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 gio/gdbusconnection.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c
index 95fcaea..9551b49 100644
--- a/gio/gdbusconnection.c
+++ b/gio/gdbusconnection.c
@@ -3349,7 +3349,7 @@ distribute_signals (GDBusConnection *connection,
       _g_dbus_debug_print_lock ();
       g_print ("========================================================================\n"
                "GDBus-debug:Signal:\n"
-               " >>>> SIGNAL %s.%s\n"
+               " <<<< RECEIVED SIGNAL %s.%s\n"
                "      on object %s\n"
                "      sent by name %s\n",
                g_dbus_message_get_interface (message),
@@ -5886,7 +5886,7 @@ distribute_method_call (GDBusConnection *connection,
       _g_dbus_debug_print_lock ();
       g_print ("========================================================================\n"
                "GDBus-debug:Incoming:\n"
-               " >>>> METHOD INVOCATION %s.%s()\n"
+               " <<<< METHOD INVOCATION %s.%s()\n"
                "      on object %s\n"
                "      invoked by name %s\n",
                interface_name, member,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]