From 6987d0f1e35da0166adc16f204d2ee6c834b9aab Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Sat, 10 Jun 2023 17:05:02 +0200 Subject: [PATCH] plugin-manager: Add debugging to init() --- src/calls-plugin-manager.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/calls-plugin-manager.c b/src/calls-plugin-manager.c index b327f48..a95be6a 100644 --- a/src/calls-plugin-manager.c +++ b/src/calls-plugin-manager.c @@ -240,7 +240,12 @@ calls_plugin_manager_init (CallsPluginManager *self) self->providers = g_list_store_new (CALLS_TYPE_PROVIDER); for (const GList *node = peas_engine_get_plugin_list (self->plugin_engine); node; node = node->next) { - CallsPlugin *plugin = calls_plugin_new (node->data); + PeasPluginInfo *info = node->data; + CallsPlugin *plugin = calls_plugin_new (info); + + g_debug ("Created plugin '%s', found in '%s'", + peas_plugin_info_get_module_name (info), + peas_plugin_info_get_module_dir (info)); g_signal_connect_object (plugin, "notify::loaded", @@ -250,6 +255,8 @@ calls_plugin_manager_init (CallsPluginManager *self) g_list_store_append (self->plugins, plugin); } + + g_debug ("Created %d plugins", g_list_model_get_n_items (G_LIST_MODEL (self->plugins))); }