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:
parent
090fda072b
commit
3b2fe6ff8d
1 changed files with 9 additions and 8 deletions
17
ircd/mods.cc
17
ircd/mods.cc
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue