mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Common: Fix a std::string -> char* -> std::string conversion
* Thanks jackpoz for noticing
(cherry picked from commit 2698d1ff48)
This commit is contained in:
@@ -78,7 +78,7 @@ static int CreateChildProcess(T waiter, std::string const& executable,
|
||||
|
||||
if (!secure)
|
||||
{
|
||||
TC_LOG_TRACE(logger.c_str(), "Starting process \"%s\" with arguments: \"%s\".",
|
||||
TC_LOG_TRACE(logger, "Starting process \"%s\" with arguments: \"%s\".",
|
||||
executable.c_str(), boost::algorithm::join(args, " ").c_str());
|
||||
}
|
||||
|
||||
@@ -111,12 +111,12 @@ static int CreateChildProcess(T waiter, std::string const& executable,
|
||||
|
||||
auto outInfo = MakeTCLogSink([&](std::string msg)
|
||||
{
|
||||
TC_LOG_INFO(logger.c_str(), "%s", msg.c_str());
|
||||
TC_LOG_INFO(logger, "%s", msg.c_str());
|
||||
});
|
||||
|
||||
auto outError = MakeTCLogSink([&](std::string msg)
|
||||
{
|
||||
TC_LOG_ERROR(logger.c_str(), "%s", msg.c_str());
|
||||
TC_LOG_ERROR(logger, "%s", msg.c_str());
|
||||
});
|
||||
|
||||
copy(outFd, outInfo);
|
||||
@@ -128,7 +128,7 @@ static int CreateChildProcess(T waiter, std::string const& executable,
|
||||
|
||||
if (!secure)
|
||||
{
|
||||
TC_LOG_TRACE(logger.c_str(), ">> Process \"%s\" finished with return value %i.",
|
||||
TC_LOG_TRACE(logger, ">> Process \"%s\" finished with return value %i.",
|
||||
executable.c_str(), result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user