mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 03:32:35 +01:00
- error output now shows system time
This commit is contained in:
parent
e5c4abffa5
commit
0de4f33923
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user