- error output now shows system time

This commit is contained in:
SoftCoder 2014-01-17 09:46:31 -08:00
parent e5c4abffa5
commit 0de4f33923
1 changed files with 3 additions and 2 deletions

View File

@ -449,7 +449,8 @@ void SystemFlags::logDebugEntry(DebugType type, string debugEntry, time_t debugT
} }
char szBuf2[100]=""; 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. // Get the current time.
// time_t curtime = time (NULL); // time_t curtime = time (NULL);
// Convert it to local time representation. // 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(); (*currentDebugLog.fileStream) << "[" << szBuf2 << "] " << debugEntry.c_str();
} }
else if (type == debugError) { else if (type == debugError) {
(*currentDebugLog.fileStream) << " *ERROR* " << debugEntry.c_str(); (*currentDebugLog.fileStream) << "[" << szBuf2 << "] *ERROR* " << debugEntry.c_str();
} }
else { else {
(*currentDebugLog.fileStream) << debugEntry.c_str(); (*currentDebugLog.fileStream) << debugEntry.c_str();