Core/Misc: Replace std::ostringstream based formatting with Trinity::StringFormat where possible in common and database projects

This commit is contained in:
Shauren
2024-10-16 18:58:45 +02:00
parent c3b06d7797
commit 1a41281e37
4 changed files with 49 additions and 121 deletions

View File

@@ -37,7 +37,6 @@
#include <mysqld_error.h>
#include <utility>
#ifdef TRINITY_DEBUG
#include <sstream>
#include <boost/stacktrace.hpp>
#endif
@@ -503,9 +502,7 @@ T* DatabaseWorkerPool<T>::GetFreeConnection()
#ifdef TRINITY_DEBUG
if (WarnSyncQueries<T>)
{
std::ostringstream ss;
ss << boost::stacktrace::stacktrace();
TC_LOG_WARN("sql.performances", "Sync query at:\n{}", ss.str());
TC_LOG_WARN("sql.performances", "Sync query at:\n{}", boost::stacktrace::to_string(boost::stacktrace::stacktrace()));
}
#endif