aboutsummaryrefslogtreecommitdiff
path: root/src/cull.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/cull.cpp
parentRewrite the entire logging system. (diff)
Rewrite logging calls to use the new APIs.
Diffstat (limited to 'src/cull.cpp')
-rw-r--r--src/cull.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cull.cpp b/src/cull.cpp
index 4c0d2a92b..4990aaf62 100644
--- a/src/cull.cpp
+++ b/src/cull.cpp
@@ -34,7 +34,7 @@ Cullable::Cullable()
#ifdef INSPIRCD_ENABLE_RTTI
if (ServerInstance)
{
- ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "Cullable::+%s @%p",
+ ServerInstance->Logs.Debug("CULLLIST", "Cullable::+%s @%p",
typeid(*this).name(), static_cast<void*>(this));
}
#endif
@@ -45,7 +45,7 @@ Cullable::~Cullable()
#ifdef INSPIRCD_ENABLE_RTTI
if (ServerInstance)
{
- ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "Cullable::~%s @%p",
+ ServerInstance->Logs.Debug("CULLLIST", "Cullable::~%s @%p",
typeid(*this).name(), static_cast<void*>(this));
}
#endif
@@ -56,7 +56,7 @@ Cullable::Result Cullable::Cull()
#ifdef INSPIRCD_ENABLE_RTTI
if (ServerInstance)
{
- ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "Cullable::-%s @%p",
+ ServerInstance->Logs.Debug("CULLLIST", "Cullable::-%s @%p",
typeid(*this).name(), static_cast<void*>(this));
}
#endif
@@ -86,17 +86,17 @@ void CullList::Apply()
if (gone.insert(c).second)
{
#ifdef INSPIRCD_ENABLE_RTTI
- ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "Deleting %s @%p", typeid(*c).name(),
+ ServerInstance->Logs.Debug("CULLLIST", "Deleting %s @%p", typeid(*c).name(),
static_cast<void*>(c));
#else
- ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "Deleting @%p", static_cast<void*>(c));
+ ServerInstance->Logs.Debug("CULLLIST", "Deleting @%p", static_cast<void*>(c));
#endif
c->Cull();
queue.push_back(c);
}
else
{
- ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "WARNING: Object @%p culled twice!",
+ ServerInstance->Logs.Debug("CULLLIST", "WARNING: Object @%p culled twice!",
static_cast<void*>(c));
}
}
@@ -108,7 +108,7 @@ void CullList::Apply()
}
if (!list.empty())
{
- ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "WARNING: Objects added to cull list in a destructor");
+ ServerInstance->Logs.Debug("CULLLIST", "WARNING: Objects added to cull list in a destructor");
Apply();
}
}