Commit 783d82f3 authored by Marco Trevisan's avatar Marco Trevisan Committed by Marco Trevisan
Browse files

device: Expose method name when logging authorization steps

parent c00a3375
...@@ -1923,8 +1923,9 @@ handle_unauthorized_access (FprintDevice *rdev, ...@@ -1923,8 +1923,9 @@ handle_unauthorized_access (FprintDevice *rdev,
g_assert (error); g_assert (error);
g_warning ("Client %s not authorized for device %s: %s", g_warning ("Client %s not authorized to call method '%s' for device %s: %s",
g_dbus_method_invocation_get_sender (invocation), g_dbus_method_invocation_get_sender (invocation),
g_dbus_method_invocation_get_method_name (invocation),
fp_device_get_name (priv->dev), fp_device_get_name (priv->dev),
error->message); error->message);
g_dbus_method_invocation_return_gerror (invocation, error); g_dbus_method_invocation_return_gerror (invocation, error);
...@@ -1978,8 +1979,9 @@ action_authorization_handler (GDBusInterfaceSkeleton *interface, ...@@ -1978,8 +1979,9 @@ action_authorization_handler (GDBusInterfaceSkeleton *interface,
&error)) &error))
return handle_unauthorized_access (rdev, invocation, error); return handle_unauthorized_access (rdev, invocation, error);
g_debug ("Authorization granted to %s for device %s!", g_debug ("Authorization granted to %s to call method '%s' for device %s!",
fp_device_get_name (priv->dev), fp_device_get_name (priv->dev),
g_dbus_method_invocation_get_method_name (invocation),
g_dbus_method_invocation_get_sender (invocation)); g_dbus_method_invocation_get_sender (invocation));
return TRUE; return TRUE;
......
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