[epiphany/mwleeds/webapp-dbus-api: 2/5] Add some debug output
- From: Phaedrus Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mwleeds/webapp-dbus-api: 2/5] Add some debug output
- Date: Fri, 17 Dec 2021 03:33:19 +0000 (UTC)
commit ed917f02959a3bd25f06be79489dd0860b948f4c
Author: Phaedrus Leeds <mwleeds protonmail com>
Date: Mon Dec 13 10:35:35 2021 -0800
Add some debug output
src/webapp-provider/ephy-webapp-provider-main.c | 6 ++++++
src/webapp-provider/ephy-webapp-provider.c | 10 ++++++++++
2 files changed, 16 insertions(+)
---
diff --git a/src/webapp-provider/ephy-webapp-provider-main.c b/src/webapp-provider/ephy-webapp-provider-main.c
index eb854141c..36695344e 100644
--- a/src/webapp-provider/ephy-webapp-provider-main.c
+++ b/src/webapp-provider/ephy-webapp-provider-main.c
@@ -34,6 +34,10 @@ main (gint argc,
int status;
GError *error = NULL;
+ g_setenv ("G_MESSAGES_DEBUG", "all", TRUE);
+
+ g_debug ("started %s", argv[0]);
+
/* Initialize the i18n stuff */
setlocale (LC_ALL, "");
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
@@ -52,5 +56,7 @@ main (gint argc,
ephy_file_helpers_shutdown ();
+ g_debug ("stopping %s with status %d", argv[0], status);
+
return status;
}
diff --git a/src/webapp-provider/ephy-webapp-provider.c b/src/webapp-provider/ephy-webapp-provider.c
index c6329994c..3a73b1210 100644
--- a/src/webapp-provider/ephy-webapp-provider.c
+++ b/src/webapp-provider/ephy-webapp-provider.c
@@ -51,6 +51,8 @@ handle_get_installed_web_apps (EphyWebAppProvider *skeleton,
GList *apps;
GList *l;
+ g_debug ("%s", G_STRFUNC);
+
g_application_hold (G_APPLICATION (self));
g_variant_builder_init (&builder, G_VARIANT_TYPE ("aa{sv}"));
@@ -99,6 +101,8 @@ handle_install_web_app (EphyWebAppProvider *skeleton,
g_autofree char *id = NULL;
g_autofree char *desktop_path = NULL;
+ g_debug ("%s", G_STRFUNC);
+
g_application_hold (G_APPLICATION (self));
/* We need an install token acquired by a trusted system component such as
@@ -159,6 +163,8 @@ handle_uninstall_web_app (EphyWebAppProvider *skeleton,
{
g_autoptr (EphyWebApplication) app = NULL;
+ g_debug ("%s", G_STRFUNC);
+
g_application_hold (G_APPLICATION (self));
if (!desktop_path || !g_path_is_absolute (desktop_path)) {
@@ -205,6 +211,8 @@ ephy_web_app_provider_service_dbus_register (GApplication *application,
{
EphyWebAppProviderService *self;
+ g_debug ("registering at object path %s", object_path);
+
if (!G_APPLICATION_CLASS (ephy_web_app_provider_service_parent_class)->dbus_register (application,
connection,
object_path,
@@ -237,6 +245,8 @@ ephy_web_app_provider_service_dbus_unregister (GApplication *application,
EphyWebAppProviderService *self;
GDBusInterfaceSkeleton *skeleton;
+ g_debug ("unregistering at object path %s", object_path);
+
self = EPHY_WEB_APP_PROVIDER_SERVICE (application);
skeleton = G_DBUS_INTERFACE_SKELETON (self->skeleton);
if (g_dbus_interface_skeleton_has_connection (skeleton, connection))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]