0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-20 19:41:55 +01:00

ircd:Ⓜ️ Add debuglog msg for hook registration.

This commit is contained in:
Jason Volk 2019-05-02 02:25:37 -07:00
parent 04e5e44c98
commit c4628525ae

View file

@ -5150,12 +5150,27 @@ ircd::m::hook::base::site::add(base &hook)
hook.registered = true; hook.registered = true;
matchers += matched; matchers += matched;
++count; ++count;
log::debug
{
log, "Registered hook %p to site %s",
&hook,
name()
};
return true; return true;
} }
bool bool
ircd::m::hook::base::site::del(base &hook) ircd::m::hook::base::site::del(base &hook)
{ {
log::debug
{
log, "Removing hook %p from site %s",
&hook,
name()
};
assert(hook.registered); assert(hook.registered);
assert(hook.site_name() == name()); assert(hook.site_name() == name());