diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-09 12:44:23 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-09 12:44:23 +0000 |
commit | c61fb7544dda003ed5d93d66d4c8cfe2064edf92 (patch) | |
tree | ca79efa16e552e688de0f6ab9a4a258e18d0daf3 /src | |
parent | af7e1a1ca8b36064593becf62b1a91468ad32237 (diff) |
Use new logging in bancache
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8859 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/bancache.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bancache.cpp b/src/bancache.cpp index 2254a117b..052d07cf7 100644 --- a/src/bancache.cpp +++ b/src/bancache.cpp @@ -52,7 +52,7 @@ BanCacheHit *BanCacheManager::GetHit(const std::string &ip) { if (time(NULL) > i->second->Expiry) { - ServerInstance->Log(DEBUG, "Hit on " + ip + " is out of date, removing!"); + ServerInstance->Logs->Log("BANCACHE", DEBUG, "Hit on " + ip + " is out of date, removing!"); RemoveHit(i->second); return NULL; // out of date } @@ -73,7 +73,7 @@ bool BanCacheManager::RemoveHit(BanCacheHit *b) if (i == this->BanHash->end()) { // err.. - ServerInstance->Log(DEBUG, "BanCacheManager::RemoveHit(): I got asked to remove a hit that wasn't in the hash(?)"); + ServerInstance->Logs->Log("BANCACHE", DEBUG, "BanCacheManager::RemoveHit(): I got asked to remove a hit that wasn't in the hash(?)"); } else { @@ -91,9 +91,9 @@ unsigned int BanCacheManager::RemoveEntries(const std::string &type, bool positi BanCacheHash::iterator safei; if (positive) - ServerInstance->Log(DEBUG, "BanCacheManager::RemoveEntries(): Removing positive hits for " + type); + ServerInstance->Logs->Log("BANCACHE", DEBUG, "BanCacheManager::RemoveEntries(): Removing positive hits for " + type); else - ServerInstance->Log(DEBUG, "BanCacheManager::RemoveEntries(): Removing negative hits for " + type); + ServerInstance->Logs->Log("BANCACHE", DEBUG, "BanCacheManager::RemoveEntries(): Removing negative hits for " + type); for (BanCacheHash::iterator n = BanHash->begin(); n != BanHash->end(); ) { @@ -108,7 +108,7 @@ unsigned int BanCacheManager::RemoveEntries(const std::string &type, bool positi if ((positive && !b->Reason.empty()) || b->Reason.empty()) { /* we need to remove this one. */ - ServerInstance->Log(DEBUG, "BanCacheManager::RemoveEntries(): Removing a hit on " + b->IP); + ServerInstance->Logs->Log("BANCACHE", DEBUG, "BanCacheManager::RemoveEntries(): Removing a hit on " + b->IP); delete b; b = NULL; BanHash->erase(n); // WORD TO THE WISE: don't use RemoveHit here, because we MUST remove the iterator in a safe way. |