summaryrefslogtreecommitdiffstats
path: root/source/Log.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-10 13:03:05 +0200
committermadmaxoft <github@xoft.cz>2013-08-10 13:03:05 +0200
commit19781ecad53c37adc99c4f9b3044b2fb956071c5 (patch)
tree6ec28412c246807b10c3f3b6abf936088dac58a3 /source/Log.cpp
parentAnother Linux compilation fix. (diff)
downloadcuberite-19781ecad53c37adc99c4f9b3044b2fb956071c5.tar
cuberite-19781ecad53c37adc99c4f9b3044b2fb956071c5.tar.gz
cuberite-19781ecad53c37adc99c4f9b3044b2fb956071c5.tar.bz2
cuberite-19781ecad53c37adc99c4f9b3044b2fb956071c5.tar.lz
cuberite-19781ecad53c37adc99c4f9b3044b2fb956071c5.tar.xz
cuberite-19781ecad53c37adc99c4f9b3044b2fb956071c5.tar.zst
cuberite-19781ecad53c37adc99c4f9b3044b2fb956071c5.zip
Diffstat (limited to '')
-rw-r--r--source/Log.cpp6
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);
}