easylogging++: avoid creating directory/filename for the builtin default log file

This commit is contained in:
moneromooo-monero 2017-03-25 19:35:53 +00:00
parent 0c1ad0ff1a
commit 14620ca0bd
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -1711,6 +1711,8 @@ void TypedConfigurations::insertFile(Level level, const std::string& fullFilenam
m_fileStreamMap.insert(std::make_pair(level, base::FileStreamPtr(nullptr))); m_fileStreamMap.insert(std::make_pair(level, base::FileStreamPtr(nullptr)));
return; return;
#endif #endif
if (fullFilename.empty())
return;
std::string resolvedFilename = resolveFilename(fullFilename); std::string resolvedFilename = resolveFilename(fullFilename);
if (resolvedFilename.empty()) { if (resolvedFilename.empty()) {
std::cerr << "Could not load empty file for logging, please re-check your configurations for level [" std::cerr << "Could not load empty file for logging, please re-check your configurations for level ["