aboutsummaryrefslogtreecommitdiff
path: root/src/bancache.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/bancache.cpp
parentRewrite the entire logging system. (diff)
Rewrite logging calls to use the new APIs.
Diffstat (limited to 'src/bancache.cpp')
-rw-r--r--src/bancache.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bancache.cpp b/src/bancache.cpp
index 8755c1101..db11840ef 100644
--- a/src/bancache.cpp
+++ b/src/bancache.cpp
@@ -59,7 +59,7 @@ bool BanCacheManager::RemoveIfExpired(BanCacheHash::iterator& it)
if (ServerInstance->Time() < it->second->Expiry)
return false;
- ServerInstance->Logs.Log("BANCACHE", LOG_DEBUG, "Hit on " + it->first + " is out of date, removing!");
+ ServerInstance->Logs.Debug("BANCACHE", "Hit on " + it->first + " is out of date, removing!");
delete it->second;
it = BanHash.erase(it);
return true;
@@ -68,9 +68,9 @@ bool BanCacheManager::RemoveIfExpired(BanCacheHash::iterator& it)
void BanCacheManager::RemoveEntries(const std::string& type, bool positive)
{
if (positive)
- ServerInstance->Logs.Log("BANCACHE", LOG_DEBUG, "BanCacheManager::RemoveEntries(): Removing positive hits for " + type);
+ ServerInstance->Logs.Debug("BANCACHE", "BanCacheManager::RemoveEntries(): Removing positive hits for " + type);
else
- ServerInstance->Logs.Log("BANCACHE", LOG_DEBUG, "BanCacheManager::RemoveEntries(): Removing all negative hits");
+ ServerInstance->Logs.Debug("BANCACHE", "BanCacheManager::RemoveEntries(): Removing all negative hits");
for (BanCacheHash::iterator i = BanHash.begin(); i != BanHash.end(); )
{
@@ -94,7 +94,7 @@ void BanCacheManager::RemoveEntries(const std::string& type, bool positive)
if (remove)
{
/* we need to remove this one. */
- ServerInstance->Logs.Log("BANCACHE", LOG_DEBUG, "BanCacheManager::RemoveEntries(): Removing a hit on " + i->first);
+ ServerInstance->Logs.Debug("BANCACHE", "BanCacheManager::RemoveEntries(): Removing a hit on " + i->first);
delete b;
i = BanHash.erase(i);
}