mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 12:40:16 +01:00
libnm: add trace logging for D-Bus calls
libnm-dbus: <trace> [394618.09943] nmclient[97de7f355f14dfa9]: call D-Bus method on :1.17: /org/freedesktop/NetworkManager/Settings/17, org.freedesktop.NetworkManager.Settings.Connection.GetSettings -> (a{sa{sv}}) (())
This commit is contained in:
parent
1b1a764445
commit
39264bdb13
1 changed files with 12 additions and 0 deletions
|
|
@ -510,6 +510,7 @@ _nm_client_dbus_call_simple (NMClient *self,
|
|||
{
|
||||
NMClientPrivate *priv = NM_CLIENT_GET_PRIVATE (self);
|
||||
nm_auto_pop_gmaincontext GMainContext *dbus_context = NULL;
|
||||
gs_free char *log_str = NULL;
|
||||
|
||||
nm_assert (priv->name_owner);
|
||||
nm_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
|
||||
|
|
@ -522,6 +523,17 @@ _nm_client_dbus_call_simple (NMClient *self,
|
|||
|
||||
dbus_context = nm_g_main_context_push_thread_default_if_necessary (priv->dbus_context);
|
||||
|
||||
NML_NMCLIENT_LOG_T (self,
|
||||
"call D-Bus method on %s: %s, %s.%s -> %s (%s)",
|
||||
priv->name_owner,
|
||||
object_path,
|
||||
interface_name,
|
||||
method_name,
|
||||
(const char *) reply_type ?: "???",
|
||||
parameters
|
||||
? (log_str = g_variant_print (parameters, TRUE))
|
||||
: "NULL");
|
||||
|
||||
g_dbus_connection_call (priv->dbus_connection,
|
||||
priv->name_owner,
|
||||
object_path,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue