[gnome-builder/wip/chergert/multi-process: 48/58] app: add logging and assertions



commit 3b502d0c2c497e09854ad7b0470bc4dfce1aacc6
Author: Christian Hergert <chergert redhat com>
Date:   Tue Oct 20 18:24:38 2015 -0700

    app: add logging and assertions

 src/app/gb-application.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/app/gb-application.c b/src/app/gb-application.c
index da69ff6..6108d0d 100644
--- a/src/app/gb-application.c
+++ b/src/app/gb-application.c
@@ -71,6 +71,8 @@ gb_application_load_worker (GbApplication *self)
   prctl (PR_SET_PDEATHSIG, 15);
 #endif
 
+  IDE_TRACE_MSG ("Connecting to %s", self->dbus_address);
+
   connection = g_dbus_connection_new_for_address_sync (self->dbus_address,
                                                        G_DBUS_CONNECTION_FLAGS_NONE,
                                                        NULL, NULL, &error);
@@ -82,6 +84,8 @@ gb_application_load_worker (GbApplication *self)
       IDE_EXIT;
     }
 
+  g_assert (G_IS_DBUS_CONNECTION (connection));
+
   engine = peas_engine_get_default ();
   plugin_info = peas_engine_get_plugin_info (engine, self->type);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]