aboutsummaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-01-23 16:35:32 +0000
committerGravatar Sadie Powell2025-01-23 16:35:32 +0000
commitb9fee8b43dc1903ecb08c81405fb83295fc64db9 (patch)
tree80d4bb49c9a2e0e36be0e348a3900d7bec2b7da5 /src/channels.cpp
parentFix the list of supported exemptions. (diff)
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/channels.cpp')
-rw-r--r--src/channels.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 66cc2150c..d663ecb37 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -167,7 +167,7 @@ Membership* Channel::JoinUser(LocalUser* user, std::string cname, bool override,
{
if (!user->IsFullyConnected())
{
- ServerInstance->Logs.Debug("CHANNELS", "Attempted to join partially connected user " + user->uuid + " to channel " + cname);
+ ServerInstance->Logs.Debug("CHANNELS", "Attempted to join partially connected user {} to channel {}", user->uuid, cname);
return nullptr;
}
@@ -217,7 +217,7 @@ Membership* Channel::ForceJoin(User* user, const std::string* privs, bool bursti
{
if (IS_SERVER(user))
{
- ServerInstance->Logs.Debug("CHANNELS", "Attempted to join server user " + user->uuid + " to channel " + this->name);
+ ServerInstance->Logs.Debug("CHANNELS", "Attempted to join server user {} to channel {}", user->uuid, this->name);
return nullptr;
}