From b9fee8b43dc1903ecb08c81405fb83295fc64db9 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 23 Jan 2025 16:35:32 +0000 Subject: Convert debug logging from string concatenation to format strings. When running in normal mode this will prevent a bunch of expensive string concatenation. --- src/configreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 15ddb1409..804406ec4 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -740,7 +740,7 @@ void ConfigReaderThread::OnStop() { try { - ServerInstance->Logs.Debug("MODULE", "Rehashing " + modname); + ServerInstance->Logs.Debug("MODULE", "Rehashing {}", modname); mod->ReadConfig(status); } catch (const CoreException& modex) -- cgit v1.3.1-10-gc9f91