diff options
| author | 2025-01-23 16:35:32 +0000 | |
|---|---|---|
| committer | 2025-01-23 16:35:32 +0000 | |
| commit | b9fee8b43dc1903ecb08c81405fb83295fc64db9 (patch) | |
| tree | 80d4bb49c9a2e0e36be0e348a3900d7bec2b7da5 /src/modules/m_spanningtree/ijoin.cpp | |
| parent | Fix 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/ijoin.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/ijoin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/ijoin.cpp b/src/modules/m_spanningtree/ijoin.cpp index 22f3c28c6..444d7e8ed 100644 --- a/src/modules/m_spanningtree/ijoin.cpp +++ b/src/modules/m_spanningtree/ijoin.cpp @@ -31,7 +31,7 @@ CmdResult CommandIJoin::HandleRemote(RemoteUser* user, Params& params) { // Desync detected, recover // Ignore the join and send RESYNC, this will result in the remote server sending all channel data to us - ServerInstance->Logs.Debug(MODNAME, "Received IJOIN for nonexistent channel: " + params[0]); + ServerInstance->Logs.Debug(MODNAME, "Received IJOIN for nonexistent channel: {}", params[0]); CmdBuilder("RESYNC").push(params[0]).Unicast(user); @@ -58,7 +58,7 @@ CmdResult CommandIJoin::HandleRemote(RemoteUser* user, Params& params) CmdResult CommandResync::HandleServer(TreeServer* server, CommandBase::Params& params) { - ServerInstance->Logs.Debug(MODNAME, "Resyncing " + params[0]); + ServerInstance->Logs.Debug(MODNAME, "Resyncing {}", params[0]); auto* chan = ServerInstance->Channels.Find(params[0]); if (!chan) { |
