diff options
| author | 2025-01-23 16:35:32 +0000 | |
|---|---|---|
| committer | 2025-01-23 16:35:32 +0000 | |
| commit | b9fee8b43dc1903ecb08c81405fb83295fc64db9 (patch) | |
| tree | 80d4bb49c9a2e0e36be0e348a3900d7bec2b7da5 /src/xline.cpp | |
| parent | Fix the list of supported exemptions. (diff) | |
| download | inspircd++-b9fee8b43dc1903ecb08c81405fb83295fc64db9.tar.gz inspircd++-b9fee8b43dc1903ecb08c81405fb83295fc64db9.tar.bz2 inspircd++-b9fee8b43dc1903ecb08c81405fb83295fc64db9.zip | |
Convert debug logging from string concatenation to format strings.
When running in normal mode this will prevent a bunch of expensive
string concatenation.
Diffstat (limited to 'src/xline.cpp')
| -rw-r--r-- | src/xline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index 32a6fd1a8..ec3178f70 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -577,7 +577,7 @@ void XLine::DefaultApply(User* u, bool bancache) if (bancache) { - ServerInstance->Logs.Debug("BANCACHE", "Adding positive hit (" + type + ") for " + u->GetAddress()); + ServerInstance->Logs.Debug("BANCACHE", "Adding positive hit ({}) for {}", type, u->GetAddress()); ServerInstance->BanCache.AddHit(u->GetAddress(), this->type, banreason, (this->duration > 0 ? (this->expiry - ServerInstance->Time()) : 0)); } } |
