Browse Source

Fix order of logger

tags/v0.6.0
Andrew Belt 6 years ago
parent
commit
6a18b51f8e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/util/logger.cpp

+ 1
- 1
src/util/logger.cpp View File

@@ -30,7 +30,7 @@ static void printLog(const char *type, const char *format, va_list args) {
auto nowTime = std::chrono::high_resolution_clock::now();
int duration = std::chrono::duration_cast<std::chrono::milliseconds>(nowTime - startTime).count();
printTimestamp();
fprintf(logFile, "[%s %.03f] ", duration / 1000.0, type);
fprintf(logFile, "[%.03f %s] ", duration / 1000.0, type);
vfprintf(logFile, format, args);
fprintf(logFile, "\n");
fflush(logFile);


Loading…
Cancel
Save