diff options
author | Alexander Harkness <bearbin@gmail.com> | 2013-08-10 13:40:38 +0200 |
---|---|---|
committer | Alexander Harkness <bearbin@gmail.com> | 2013-08-10 13:40:38 +0200 |
commit | e508e0975314fa37b307456a69e869b8b2e9b43a (patch) | |
tree | 1546e9223bf208bb828ccf0a1708b0b3d26ed37b /source/Log.cpp | |
parent | Piston head, when removed, removes the associated piston body, too. (diff) | |
parent | Linux color redirection fixed. (diff) | |
download | cuberite-e508e0975314fa37b307456a69e869b8b2e9b43a.tar cuberite-e508e0975314fa37b307456a69e869b8b2e9b43a.tar.gz cuberite-e508e0975314fa37b307456a69e869b8b2e9b43a.tar.bz2 cuberite-e508e0975314fa37b307456a69e869b8b2e9b43a.tar.lz cuberite-e508e0975314fa37b307456a69e869b8b2e9b43a.tar.xz cuberite-e508e0975314fa37b307456a69e869b8b2e9b43a.tar.zst cuberite-e508e0975314fa37b307456a69e869b8b2e9b43a.zip |
Diffstat (limited to 'source/Log.cpp')
-rw-r--r-- | source/Log.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Log.cpp b/source/Log.cpp index 5f78bba1b..2b505de5d 100644 --- a/source/Log.cpp +++ b/source/Log.cpp @@ -117,13 +117,13 @@ void cLog::Log(const char * a_Format, va_list argList) AString Line; #ifdef _DEBUG - Printf(Line, "[%04x|%02d:%02d:%02d] %s\n", cIsThread::GetCurrentID(), timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec, Message.c_str()); + Printf(Line, "[%04x|%02d:%02d:%02d] %s", cIsThread::GetCurrentID(), timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec, Message.c_str()); #else - Printf(Line, "[%02d:%02d:%02d] %s\n", timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec, Message.c_str()); + Printf(Line, "[%02d:%02d:%02d] %s", timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec, Message.c_str()); #endif if (m_File) { - fputs(Line.c_str(), m_File); + fprintf(m_File, "%s\n", Line.c_str(), m_File); fflush(m_File); } |