From d8b4414ee18be69eb7c6c491587e4895dc995fac Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 18 Dec 2022 13:43:33 +0000 Subject: Rework the levels things are logged at to make more sense. --- src/modules/m_sqloper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_sqloper.cpp') 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) { -- cgit v1.3.1-10-gc9f91