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/cull.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/cull.cpp') 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(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(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(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(c)); #else - ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "Deleting @%p", static_cast(c)); + ServerInstance->Logs.Debug("CULLLIST", "Deleting @%p", static_cast(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(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(); } } -- cgit v1.3.1-10-gc9f91