Skip to content
  • David Zeuthen's avatar
    GDBus: Add `return' debug option · d52e1c33
    David Zeuthen authored
    
    
    This prints all GDBusMethodInvocation API usage and is normally used
    with the `incoming' option. Example:
    
     # G_DBUS_DEBUG=incoming,return ./polkitd --replace
     Entering main event loop
     Connected to the system bus
     Registering null backend at priority -10
     [...]
     Acquired the name org.freedesktop.PolicyKit1
     [...]
    
     ========================================================================
     GDBus-debug:Incoming:
      <<<< METHOD INVOCATION org.freedesktop.PolicyKit1.Authority.RegisterAuthenticationAgent()
           on object /org/freedesktop/PolicyKit1/Authority
           invoked by name :1.26
           serial 299
     ========================================================================
     GDBus-debug:Return:
      >>>> METHOD ERROR org.freedesktop.PolicyKit1.Error.Failed
           message `Cannot determine session the caller is in'
           in response to org.freedesktop.PolicyKit1.Authority.RegisterAuthenticationAgent()
           on object /org/freedesktop/PolicyKit1/Authority
           to name :1.26
           reply-serial 299
    
     [...]
    
     ========================================================================
     GDBus-debug:Incoming:
      <<<< METHOD INVOCATION org.freedesktop.PolicyKit1.Authority.RegisterAuthenticationAgent()
           on object /org/freedesktop/PolicyKit1/Authority
           invoked by name :1.2402
           serial 25
     ========================================================================
     GDBus-debug:Return:
      >>>> METHOD RETURN
           in response to org.freedesktop.PolicyKit1.Authority.RegisterAuthenticationAgent()
           on object /org/freedesktop/PolicyKit1/Authority
           to name :1.2402
           reply-serial 25
    
    Signed-off-by: default avatarDavid Zeuthen <davidz@redhat.com>
    d52e1c33