From c4628525ae1f8865368722b8684e9ddc4846ee83 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 2 May 2019 02:25:37 -0700 Subject: [PATCH] ircd::m: Add debuglog msg for hook registration. --- ircd/m.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ircd/m.cc b/ircd/m.cc index 7894d5e8c..98c05e941 100644 --- a/ircd/m.cc +++ b/ircd/m.cc @@ -5150,12 +5150,27 @@ ircd::m::hook::base::site::add(base &hook) hook.registered = true; matchers += matched; ++count; + + log::debug + { + log, "Registered hook %p to site %s", + &hook, + name() + }; + return true; } bool ircd::m::hook::base::site::del(base &hook) { + log::debug + { + log, "Removing hook %p from site %s", + &hook, + name() + }; + assert(hook.registered); assert(hook.site_name() == name());