only output error filename once

This commit is contained in:
Mark Vejvoda 2011-10-18 02:11:55 +00:00
parent 62f1ad0464
commit b30fdea0d0

View File

@ -350,7 +350,7 @@ public:
errorLogFile = userData + errorLogFile;
}
printf("Attempting to write error to file [%s]\n",errorLogFile.c_str());
//printf("Attempting to write error to file [%s]\n",errorLogFile.c_str());
#if defined(WIN32) && !defined(__MINGW32__)
FILE *fp = _wfopen(utf8_decode(errorLogFile).c_str(), L"w");
@ -381,6 +381,12 @@ public:
fflush(stdout);
}
}
else {
if(confirmToConsole == true) {
printf("COULD NOT SAVE TO ERROR logfile [%s]\n",errorLogFile.c_str());
fflush(stdout);
}
}
}
static void handleRuntimeError(const char *msg) {