aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaios <naios-dev@live.de>2016-04-23 17:57:48 +0200
committerNaios <naios-dev@live.de>2016-04-23 18:15:12 +0200
commit53f44fbffab8a2c1e691c58b958ec9107732a46c (patch)
tree60b6f3a776537916ee8266eb67180c301847b124
parent4f9352d7730796ad33974cedcecceb106930fc81 (diff)
Core/Common: Fix a std::string -> char* -> std::string conversion
* Thanks jackpoz for noticing (cherry picked from commit 2698d1ff48cd449e6d5350d8b306d345f83a5de9)
-rw-r--r--src/common/Utilities/StartProcess.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/Utilities/StartProcess.cpp b/src/common/Utilities/StartProcess.cpp
index c47c02bbe87..29feeaa2714 100644
--- a/src/common/Utilities/StartProcess.cpp
+++ b/src/common/Utilities/StartProcess.cpp
@@ -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);
}