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:
parent
04e5e44c98
commit
c4628525ae
1 changed files with 15 additions and 0 deletions
15
ircd/m.cc
15
ircd/m.cc
|
@ -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());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue