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

This commit is contained in:
moneromooo-monero 2016-12-11 19:22:48 +00:00
parent 2836284798
commit 0af5d16872
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 2 additions and 0 deletions

View File

@ -3182,6 +3182,8 @@ namespace base {
}
void insertFile(Level level, const std::string& fullFilename) {
if (fullFilename.empty())
return;
std::string resolvedFilename = resolveFilename(fullFilename);
if (resolvedFilename.empty()) {
std::cerr << "Could not load empty file for logging, please re-check your configurations for level ["