[libpeas] Emit debug messages when a plugin is loaded or unloaded



commit 926e833ed47f5b1e127bef28772e57bc07005b6f
Author: Garrett Regier <alias301 gmail com>
Date:   Fri Mar 4 23:59:17 2011 -0800

    Emit debug messages when a plugin is loaded or unloaded

 libpeas/peas-engine.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libpeas/peas-engine.c b/libpeas/peas-engine.c
index 93b99c6..f591c76 100644
--- a/libpeas/peas-engine.c
+++ b/libpeas/peas-engine.c
@@ -821,6 +821,8 @@ load_plugin (PeasEngine     *engine,
       goto error;
     }
 
+  g_debug ("Loaded plugin '%s'", info->module_name);
+
   return TRUE;
 
 error:
@@ -903,6 +905,8 @@ peas_engine_unload_plugin_real (PeasEngine     *engine,
   peas_plugin_loader_garbage_collect (loader);
   peas_plugin_loader_unload (loader, info);
 
+  g_debug ("Unloaded plugin '%s'", info->module_name);
+
   if (!engine->priv->in_dispose)
     g_object_notify (G_OBJECT (engine), "loaded-plugins");
 }



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