diff options
| author | 2025-01-23 16:35:32 +0000 | |
|---|---|---|
| committer | 2025-01-23 16:35:32 +0000 | |
| commit | b9fee8b43dc1903ecb08c81405fb83295fc64db9 (patch) | |
| tree | 80d4bb49c9a2e0e36be0e348a3900d7bec2b7da5 /include | |
| 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 'include')
| -rw-r--r-- | include/modules.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h index 3996ffb8d..50a611437 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1213,7 +1213,7 @@ public: } \ catch (const CoreException& _exception_ ## EVENT) \ { \ - ServerInstance->Logs.Debug("MODULE", _mod->ModuleFile + " threw an exception in " # EVENT ": " + (_exception_ ## EVENT).GetReason()); \ + ServerInstance->Logs.Debug("MODULE", "{} threw an exception in " # EVENT ": {}", _mod->ModuleFile, (_exception_ ## EVENT).GetReason()); \ } \ } \ } while (false) @@ -1240,7 +1240,7 @@ public: } \ catch (const CoreException& _exception_ ## EVENT) \ { \ - ServerInstance->Logs.Debug("MODULE", _mod->ModuleFile + " threw an exception in " # EVENT ": " + (_exception_ ## EVENT).GetReason()); \ + ServerInstance->Logs.Debug("MODULE", "{} threw an exception in " # EVENT ": {}", _mod->ModuleFile, (_exception_ ## EVENT).GetReason()); \ } \ } \ } while (false) |
