From e23ee3fde17a6bb17a9e56c7105f4bbceb36391f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 18 Jan 2022 03:30:22 +0000 Subject: Rewrite logging calls to use the new APIs. --- src/modules/m_ident.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_ident.cpp') diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index fa4b44930..7a943ca7c 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -190,7 +190,7 @@ public: */ if (HasFd()) { - ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "Close ident socket %d", GetFd()); + ServerInstance->Logs.Debug(MODNAME, "Close ident socket %d", GetFd()); SocketEngine::Close(this); } } @@ -220,7 +220,7 @@ public: if (recvresult < 3) return; - ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "ReadResponse()"); + ServerInstance->Logs.Debug(MODNAME, "ReadResponse()"); /* Truncate at the first null character, but first make sure * there is at least one null char (at the end of the buffer). @@ -349,7 +349,7 @@ public: } catch (const ModuleException& e) { - ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "Ident exception: " + e.GetReason()); + ServerInstance->Logs.Debug(MODNAME, "Ident exception: " + e.GetReason()); } } @@ -410,7 +410,7 @@ public: { if (myclass->config->getBool("requireident") && state.Get(user) != IDENT_FOUND) { - ServerInstance->Logs.Log("CONNECTCLASS", LOG_DEBUG, "The %s connect class is not suitable as it requires an identd response", + ServerInstance->Logs.Debug("CONNECTCLASS", "The %s connect class is not suitable as it requires an identd response", myclass->GetName().c_str()); return MOD_RES_DENY; } -- cgit v1.3.1-10-gc9f91