0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-01 02:14:13 +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;
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());