From a337061084b1479218eb51b6e3afefacac782d0e Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 28 Feb 2013 11:44:08 -0800 Subject: [PATCH] Complain if we can't open the log file. --- src/cpp/ripple/Log.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cpp/ripple/Log.cpp b/src/cpp/ripple/Log.cpp index a9b9cfdba3..dfef66797d 100644 --- a/src/cpp/ripple/Log.cpp +++ b/src/cpp/ripple/Log.cpp @@ -168,6 +168,7 @@ void Log::setLogFile(boost::filesystem::path path) std::ofstream* newStream = new std::ofstream(path.c_str(), std::fstream::app); if (!newStream->good()) { + Log(lsFATAL) << "Unable to open logfile " << path; delete newStream; newStream = NULL; }