Skip to content
Snippets Groups Projects
Commit e9c38f36 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

plugin: debug activation & deactivation

parent 997e2c75
Branches apertis/v2022dev2
Tags apertis/3.7.1-1apertis1
No related merge requests found
......@@ -14,6 +14,7 @@
#define G_LOG_DOMAIN "wp-plugin"
#include "plugin.h"
#include "debug.h"
#include "private/registry.h"
enum {
......@@ -215,6 +216,8 @@ wp_plugin_activate (WpPlugin * self)
g_return_if_fail (WP_IS_PLUGIN (self));
g_return_if_fail (WP_PLUGIN_GET_CLASS (self)->activate);
wp_info_object (self, "activating plugin '%s'", wp_plugin_get_name (self));
WP_PLUGIN_GET_CLASS (self)->activate (self);
}
......@@ -231,5 +234,7 @@ wp_plugin_deactivate (WpPlugin * self)
g_return_if_fail (WP_IS_PLUGIN (self));
g_return_if_fail (WP_PLUGIN_GET_CLASS (self)->deactivate);
wp_info_object (self, "deactivating plugin '%s'", wp_plugin_get_name (self));
WP_PLUGIN_GET_CLASS (self)->deactivate (self);
}
......@@ -73,7 +73,6 @@ signal_handler (gpointer data)
static void
on_plugin_added (WpObjectManager * om, WpPlugin * p, struct WpDaemonData *d)
{
wp_info ("Activating plugin " WP_OBJECT_FORMAT, WP_OBJECT_ARGS (p));
wp_plugin_activate (p);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment