iface-modem-3gpp-profile-manager: improve logging of user request to delete profile

This commit is contained in:
Aleksander Morgado
2022-09-13 13:21:05 +00:00
parent f75be75e5c
commit 9d8e92b965

View File

@@ -1151,10 +1151,13 @@ delete_profile_ready (MMIfaceModem3gppProfileManager *self,
{ {
GError *error = NULL; GError *error = NULL;
if (!MM_IFACE_MODEM_3GPP_PROFILE_MANAGER_GET_INTERFACE (self)->delete_profile_finish (self, res, &error)) if (!MM_IFACE_MODEM_3GPP_PROFILE_MANAGER_GET_INTERFACE (self)->delete_profile_finish (self, res, &error)) {
mm_obj_warn (self, "failed deleting 3GPP profile: %s", error->message);
g_dbus_method_invocation_take_error (ctx->invocation, error); g_dbus_method_invocation_take_error (ctx->invocation, error);
else } else {
mm_obj_info (self, "3GPP profile deleted");
mm_gdbus_modem3gpp_profile_manager_complete_delete (ctx->skeleton, ctx->invocation); mm_gdbus_modem3gpp_profile_manager_complete_delete (ctx->skeleton, ctx->invocation);
}
handle_delete_context_free (ctx); handle_delete_context_free (ctx);
} }
@@ -1234,6 +1237,9 @@ handle_delete_auth_ready (MMBaseModem *self,
return; return;
} }
mm_obj_info (self, "processing user request to delete 3GPP profile...");
mm_log_3gpp_profile (self, MM_LOG_LEVEL_INFO, " ", profile);
MM_IFACE_MODEM_3GPP_PROFILE_MANAGER_GET_INTERFACE (self)->delete_profile ( MM_IFACE_MODEM_3GPP_PROFILE_MANAGER_GET_INTERFACE (self)->delete_profile (
MM_IFACE_MODEM_3GPP_PROFILE_MANAGER (self), MM_IFACE_MODEM_3GPP_PROFILE_MANAGER (self),
profile, profile,