Complain if we can't open the log file.

This commit is contained in:
JoelKatz
2013-02-28 11:44:08 -08:00
parent db9e3c6c63
commit a337061084

View File

@@ -168,6 +168,7 @@ void Log::setLogFile(boost::filesystem::path path)
std::ofstream* newStream = new std::ofstream(path.c_str(), std::fstream::app); std::ofstream* newStream = new std::ofstream(path.c_str(), std::fstream::app);
if (!newStream->good()) if (!newStream->good())
{ {
Log(lsFATAL) << "Unable to open logfile " << path;
delete newStream; delete newStream;
newStream = NULL; newStream = NULL;
} }