output to console before trying to write to error.log

This commit is contained in:
Mark Vejvoda 2011-10-18 02:02:37 +00:00
parent dc4b367f69
commit 62f1ad0464

View File

@ -349,6 +349,9 @@ public:
}
errorLogFile = userData + errorLogFile;
}
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");
std::ofstream logFile(fp);