aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_sqloper.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-01-18 03:30:22 +0000
committerGravatar Sadie Powell2022-05-01 22:07:14 +0100
commite23ee3fde17a6bb17a9e56c7105f4bbceb36391f (patch)
treeb5117aa2cc0fe2bee18df3a5dabf0ecc49dbd30e /src/modules/m_sqloper.cpp
parentRewrite the entire logging system. (diff)
Rewrite logging calls to use the new APIs.
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 b6f770cee..fc1cf4e32 100644
--- a/src/modules/m_sqloper.cpp
+++ b/src/modules/m_sqloper.cpp
@@ -89,7 +89,7 @@ public:
ServerConfig::OperIndex::iterator tblk = ServerInstance->Config->OperTypes.find(type);
if (tblk == ServerInstance->Config->OperTypes.end())
{
- ServerInstance->Logs.Log(MODNAME, LOG_DEFAULT, "Sqloper block " + name + " has missing type " + type);
+ ServerInstance->Logs.Normal(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;
}
@@ -114,7 +114,7 @@ public:
void OnError(SQL::Error& error) override
{
- ServerInstance->Logs.Log(MODNAME, LOG_DEFAULT, "query failed (%s)", error.ToString());
+ ServerInstance->Logs.Normal(MODNAME, "query failed (%s)", error.ToString());
ServerInstance->SNO.WriteGlobalSno('a', "m_sqloper: Failed to update blocks from database");
if (!uid.empty())
{
@@ -154,7 +154,7 @@ public:
}
else
{
- ServerInstance->Logs.Log(MODNAME, LOG_SPARSE, "BUG: WHAT?! Why do we have no OPER command?!");
+ ServerInstance->Logs.Error(MODNAME, "BUG: WHAT?! Why do we have no OPER command?!");
}
}
};
@@ -215,7 +215,7 @@ public:
*/
return MOD_RES_DENY;
}
- ServerInstance->Logs.Log(MODNAME, LOG_DEFAULT, "database not present");
+ ServerInstance->Logs.Normal(MODNAME, "database not present");
}
else if (active)
{