From c58a195590add85caac703955bb79dd48cf6bc91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 15 Nov 2014 10:53:57 +0100 Subject: [PATCH] core: add debug message in hook_process when core debug >= 1 --- src/core/wee-hook.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c index 5e0f0e77a..c8234e83d 100644 --- a/src/core/wee-hook.c +++ b/src/core/wee-hook.c @@ -1450,6 +1450,17 @@ hook_process_hashtable (struct t_weechat_plugin *plugin, hook_add_to_list (new_hook); + if (weechat_debug_core >= 1) + { + gui_chat_printf (NULL, + "debug: hook_process: command=\"%s\", " + "options=\"%s\", timeout=%d", + new_hook_process->command, + hashtable_get_string (new_hook_process->options, + "keys_values"), + new_hook_process->timeout); + } + hook_process_run (new_hook); return new_hook;