summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/logger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index 48578c20d..9e8e1be3e 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -336,7 +336,7 @@ void Logger::log_r(const char *const log_text, ...)
if (mLogFile.is_open())
{
- timeStr << buf << std::endl;
+ timeStr << buf;
mThreadLocked = true;
mDelayedLog.push_back(timeStr.str());
mThreadLocked = false;
@@ -357,7 +357,7 @@ void Logger::flush()
{
SDL_mutexP(mMutex);
FOR_EACH (std::vector<std::string>::const_iterator, it, mDelayedLog)
- mLogFile << *it;
+ mLogFile << *it << std::endl;
mDelayedLog.clear();
SDL_mutexV(mMutex);
}