From 0de4f339238d57b4d1f3f4c14552c6c83c47ef6b Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Fri, 17 Jan 2014 09:46:31 -0800 Subject: [PATCH] - error output now shows system time --- source/shared_lib/sources/util/util.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/shared_lib/sources/util/util.cpp b/source/shared_lib/sources/util/util.cpp index f5a31cd9..ecc3ca28 100644 --- a/source/shared_lib/sources/util/util.cpp +++ b/source/shared_lib/sources/util/util.cpp @@ -449,7 +449,8 @@ void SystemFlags::logDebugEntry(DebugType type, string debugEntry, time_t debugT } char szBuf2[100]=""; - if (type != debugPathFinder && type != debugError && type != debugWorldSynch) { + //if (type != debugPathFinder && type != debugError && type != debugWorldSynch) { + if (type != debugPathFinder && type != debugWorldSynch) { // Get the current time. // time_t curtime = time (NULL); // Convert it to local time representation. @@ -581,7 +582,7 @@ void SystemFlags::logDebugEntry(DebugType type, string debugEntry, time_t debugT (*currentDebugLog.fileStream) << "[" << szBuf2 << "] " << debugEntry.c_str(); } else if (type == debugError) { - (*currentDebugLog.fileStream) << " *ERROR* " << debugEntry.c_str(); + (*currentDebugLog.fileStream) << "[" << szBuf2 << "] *ERROR* " << debugEntry.c_str(); } else { (*currentDebugLog.fileStream) << debugEntry.c_str();