mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api)
This commit is contained in:
@@ -87,8 +87,8 @@ static int CreateChildProcess(T waiter, std::string const& executable,
|
||||
|
||||
if (!secure)
|
||||
{
|
||||
TC_LOG_TRACE(logger, "Starting process \"%s\" with arguments: \"%s\".",
|
||||
executable.c_str(), boost::algorithm::join(argsVector, " ").c_str());
|
||||
TC_LOG_TRACE(logger, "Starting process \"{}\" with arguments: \"{}\".",
|
||||
executable, boost::algorithm::join(argsVector, " "));
|
||||
}
|
||||
|
||||
// prepare file with only read permission (boost process opens with read_write)
|
||||
@@ -146,8 +146,8 @@ static int CreateChildProcess(T waiter, std::string const& executable,
|
||||
|
||||
if (!secure)
|
||||
{
|
||||
TC_LOG_TRACE(logger, ">> Process \"%s\" finished with return value %i.",
|
||||
executable.c_str(), result);
|
||||
TC_LOG_TRACE(logger, ">> Process \"{}\" finished with return value {}.",
|
||||
executable, result);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user