aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/sinfo.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/modules/m_spanningtree/sinfo.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/modules/m_spanningtree/sinfo.cpp')
-rw-r--r--src/modules/m_spanningtree/sinfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/sinfo.cpp b/src/modules/m_spanningtree/sinfo.cpp
index d1fcc7856..09e654b3b 100644
--- a/src/modules/m_spanningtree/sinfo.cpp
+++ b/src/modules/m_spanningtree/sinfo.cpp
@@ -35,7 +35,8 @@ CmdResult CommandSInfo::HandleServer(TreeServer* server, CommandBase::Params& pa
else if (irc::equals(key, "desc"))
{
// Only sent when the description of a server changes because of a rehash; not sent on burst
- ServerInstance->Logs.Debug(MODNAME, "Server description of " + server->GetName() + " changed: " + value);
+ ServerInstance->Logs.Debug(MODNAME, "Server description of {} changed: {}",
+ server->GetName(), value);
server->SetDesc(value);
}
else if (irc::equals(key, "rawbranch"))