aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_sqloper.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-12-18 13:43:33 +0000
committerGravatar Sadie Powell2022-12-18 13:43:33 +0000
commitd8b4414ee18be69eb7c6c491587e4895dc995fac (patch)
tree5aebcbacc529d29c622974df798f4aa42d28f518 /src/modules/m_sqloper.cpp
parentUpdate /MOTD to match /OPERMOTD. (diff)
Rework the levels things are logged at to make more sense.
Diffstat (limited to 'src/modules/m_sqloper.cpp')
-rw-r--r--src/modules/m_sqloper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_sqloper.cpp b/src/modules/m_sqloper.cpp
index 8eb295222..38811da0b 100644
--- a/src/modules/m_sqloper.cpp
+++ b/src/modules/m_sqloper.cpp
@@ -87,7 +87,7 @@ public:
auto tblk = ServerInstance->Config->OperTypes.find(type);
if (tblk == ServerInstance->Config->OperTypes.end())
{
- ServerInstance->Logs.Normal(MODNAME, "Sqloper block " + name + " has missing type " + type);
+ ServerInstance->Logs.Warning(MODNAME, "Sqloper block " + name + " has missing type " + type);
ServerInstance->SNO.WriteGlobalSno('a', "m_sqloper: Oper block %s has missing type %s", name.c_str(), type.c_str());
continue;
}
@@ -107,7 +107,7 @@ public:
void OnError(const SQL::Error& error) override
{
- ServerInstance->Logs.Normal(MODNAME, "query failed (%s)", error.ToString());
+ ServerInstance->Logs.Warning(MODNAME, "query failed (%s)", error.ToString());
ServerInstance->SNO.WriteGlobalSno('a', "m_sqloper: Failed to update blocks from database");
if (!uid.empty())
{
@@ -147,7 +147,7 @@ public:
}
else
{
- ServerInstance->Logs.Error(MODNAME, "BUG: WHAT?! Why do we have no OPER command?!");
+ ServerInstance->Logs.Debug(MODNAME, "BUG: WHAT?! Why do we have no OPER command?!");
}
}
};
@@ -208,7 +208,7 @@ public:
*/
return MOD_RES_DENY;
}
- ServerInstance->Logs.Normal(MODNAME, "database not present");
+ ServerInstance->Logs.Warning(MODNAME, "database not present");
}
else if (active)
{