[gnome-builder/gnome-builder-41] flatpak: add debug info for RPCs
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-41] flatpak: add debug info for RPCs
- Date: Fri, 19 Nov 2021 05:50:13 +0000 (UTC)
commit 3ed58ae92d1b09e22eb73191ec8a253084600480
Author: Christian Hergert <chergert redhat com>
Date: Thu Nov 18 16:45:27 2021 -0800
flatpak: add debug info for RPCs
src/plugins/flatpak/daemon/gnome-builder-flatpak.c | 1 +
src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c | 15 +++++++++++++++
2 files changed, 16 insertions(+)
---
diff --git a/src/plugins/flatpak/daemon/gnome-builder-flatpak.c
b/src/plugins/flatpak/daemon/gnome-builder-flatpak.c
index 1f5f3ccc1..ca3a860b4 100644
--- a/src/plugins/flatpak/daemon/gnome-builder-flatpak.c
+++ b/src/plugins/flatpak/daemon/gnome-builder-flatpak.c
@@ -122,6 +122,7 @@ main (gint argc,
&error))
goto error;
+ g_debug ("Message processing started.");
g_dbus_connection_start_message_processing (connection);
g_main_loop_run (main_loop);
diff --git a/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
b/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
index 7a8322668..137cb225c 100644
--- a/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
+++ b/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
@@ -458,6 +458,8 @@ ipc_flatpak_service_impl_add_installation (IpcFlatpakService *service,
g_assert (G_IS_DBUS_METHOD_INVOCATION (invocation));
g_assert (path != NULL);
+ g_debug ("AddInstallation(%s, is_user=%d)", path, is_user);
+
file = g_file_new_for_path (path);
if (!g_hash_table_contains (self->installs, file))
@@ -482,6 +484,8 @@ ipc_flatpak_service_impl_list_runtimes (IpcFlatpakService *service,
g_assert (IPC_IS_FLATPAK_SERVICE_IMPL (self));
g_assert (G_IS_DBUS_METHOD_INVOCATION (invocation));
+ g_debug ("ListRuntimes()");
+
g_variant_builder_init (&builder, RUNTIME_ARRAY_VARIANT_TYPE);
for (guint i = 0; i < self->runtimes->len; i++)
@@ -592,6 +596,8 @@ ipc_flatpak_service_impl_runtime_is_known (IpcFlatpakService *service,
const char *ref_branch;
IsKnown *state;
+ g_debug ("RuntimeIsKnown(%s)", name);
+
g_assert (IPC_IS_FLATPAK_SERVICE_IMPL (self));
g_assert (G_IS_DBUS_METHOD_INVOCATION (invocation));
g_assert (name != NULL);
@@ -1058,6 +1064,7 @@ ipc_flatpak_service_impl_install (IpcFlatpakService *service,
g_autoptr(IpcFlatpakTransfer) transfer = NULL;
g_autoptr(GArray) refs = NULL;
g_autoptr(GTask) task = NULL;
+ g_autofree char *debug_str = NULL;
GDBusConnection *connection;
InstallState *state;
@@ -1067,6 +1074,10 @@ ipc_flatpak_service_impl_install (IpcFlatpakService *service,
g_assert (transfer_path != NULL);
g_assert (parent_window != NULL);
+ debug_str = g_strjoinv (", ", (char **)full_ref_names);
+ g_debug ("Install([%s], if_not_exists=%d, transfer=%s, parent_window=%s)",
+ debug_str, if_not_exists, transfer_path, parent_window);
+
refs = g_array_new (FALSE, FALSE, sizeof (InstallRef));
g_array_set_clear_func (refs, clear_install_ref);
@@ -1432,6 +1443,8 @@ ipc_flatpak_service_impl_resolve_extension (IpcFlatpakService *service,
g_assert (sdk != NULL);
g_assert (extension != NULL);
+ g_debug ("ResolveExtension(%s, %s)", sdk, extension);
+
if (g_str_has_prefix (sdk, "runtime/"))
sdk += strlen ("runtime/");
@@ -1471,6 +1484,8 @@ ipc_flatpak_service_impl_get_runtime (IpcFlatpakService *service,
g_assert (G_IS_DBUS_METHOD_INVOCATION (invocation));
g_assert (runtime_id != NULL);
+ g_debug ("GetRuntime(%s)", runtime_id);
+
/* Homogenize names into runtime/name/arch/branch */
if (g_str_has_prefix (runtime_id, "runtime/"))
runtime_id += strlen ("runtime/");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]