[gnome-builder] gui: add debug logging when loading plugins



commit 1cf5fc4ec8d3674aa05a670604d722fbfe77d9b6
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jan 24 11:43:04 2019 -0800

    gui: add debug logging when loading plugins

 src/libide/gui/ide-application-plugins.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/gui/ide-application-plugins.c b/src/libide/gui/ide-application-plugins.c
index 93768bd0c..b072a06ca 100644
--- a/src/libide/gui/ide-application-plugins.c
+++ b/src/libide/gui/ide-application-plugins.c
@@ -213,12 +213,21 @@ ide_application_plugins_load_plugin_cb (IdeApplication *self,
                                         PeasEngine     *engine)
 {
   const gchar *data_dir;
+  const gchar *module_dir;
+  const gchar *module_name;
 
   g_assert (IDE_IS_MAIN_THREAD ());
   g_assert (IDE_IS_APPLICATION (self));
   g_assert (plugin_info != NULL);
   g_assert (PEAS_IS_ENGINE (engine));
 
+  data_dir = peas_plugin_info_get_data_dir (plugin_info);
+  module_dir = peas_plugin_info_get_module_dir (plugin_info);
+  module_name = peas_plugin_info_get_module_name (plugin_info);
+
+  g_debug ("Loaded plugin \"%s\" with module-dir \"%s\"",
+           module_name, module_dir);
+
   if (peas_plugin_info_get_external_data (plugin_info, "Has-Resources"))
     {
       /* Possibly load bundled .gresource files if the plugin is not
@@ -227,8 +236,6 @@ ide_application_plugins_load_plugin_cb (IdeApplication *self,
       ide_application_load_plugin_resources (self, engine, plugin_info);
     }
 
-  data_dir = peas_plugin_info_get_data_dir (plugin_info);
-
   /*
    * Only register resources if the path is to an embedded resource
    * or if it's not builtin (and therefore maybe doesn't use .gresource


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