aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_ident.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_ident.cpp
parentRewrite the entire logging system. (diff)
Rewrite logging calls to use the new APIs.
Diffstat (limited to 'src/modules/m_ident.cpp')
-rw-r--r--src/modules/m_ident.cpp8
1 files changed, 4 insertions, 4 deletions
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;
}