0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-13 21:41:06 +01:00

ircd:Ⓜ️🪝 Simplify debuglog msgs.

This commit is contained in:
Jason Volk 2020-06-20 06:25:54 -07:00
parent e26b046940
commit 67dec89155

View file

@ -342,9 +342,9 @@ ircd::m::hook::base::site::site(const json::members &members)
if(site->name() == name() && site != this) if(site->name() == name() && site != this)
throw error throw error
{ {
"Hook site '%s' already registered at %p", "Hook site '%s' already registered at site:%u",
name(), name(),
site site->id(),
}; };
// Find and register all of the orphan hooks which were constructed before // Find and register all of the orphan hooks which were constructed before
@ -385,11 +385,9 @@ ircd::m::hook::base::site::add(base &hook)
{ {
log::warning log::warning
{ {
log, "Hook:%u (%p) already registered to site:%u (%p) :%s", log, "Hook:%u already registered to site:%u :%s",
hook.id(), hook.id(),
&hook,
id(), id(),
this,
name(), name(),
}; };
@ -409,11 +407,9 @@ ircd::m::hook::base::site::add(base &hook)
log::debug log::debug
{ {
log, "Registered hook:%u (%p) to site:%u (%p) :%s", log, "Registered hook:%u to site:%u :%s",
hook.id(), hook.id(),
&hook,
id(), id(),
this,
name(), name(),
}; };
@ -425,11 +421,9 @@ ircd::m::hook::base::site::del(base &hook)
{ {
log::debug log::debug
{ {
log, "Removing hook:%u (%p) from site:%u (%p) :%s", log, "Removing hook:%u from site:%u :%s",
hook.id(), hook.id(),
&hook,
id(), id(),
this,
name(), name(),
}; };