mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Complain if we can't open the log file.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user