0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-13 16:33:53 +01:00

ircd::mods: Simplify stuck-module log message.

This commit is contained in:
Jason Volk 2019-05-28 13:30:04 -07:00
parent 090fda072b
commit 3b2fe6ff8d

View file

@ -292,14 +292,15 @@ ircd::mods::mod::unload()
loaded.erase(name());
unloading.remove(this);
if(!mapi::static_destruction)
{
log.critical("Module \"%s\" is stuck and failing to unload.", name());
log.critical("Module \"%s\" may result in undefined behavior if not fixed.", name());
}
else log::info
{
log, "Unloaded '%s'", name()
};
log::critical
{
"Module \"%s\" is stuck and failing to unload.", name()
};
else
log::info
{
log, "Unloaded '%s'", name()
};
return true;
}