diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-25 19:35:53 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-04-10 21:05:15 +0100 |
commit | 14620ca0bd8b90d23ae3ca87ca890167b3adf2df (patch) | |
tree | d6fbb0f7c09a0c9e5b93d8313d35736f8724ea0e | |
parent | easylogging++: Print thread ID in a nicer way (diff) | |
download | monero-14620ca0bd8b90d23ae3ca87ca890167b3adf2df.tar.xz |
easylogging++: avoid creating directory/filename for the builtin default log file
-rw-r--r-- | external/easylogging++/easylogging++.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/external/easylogging++/easylogging++.cc b/external/easylogging++/easylogging++.cc index 07648dd13..f80715424 100644 --- a/external/easylogging++/easylogging++.cc +++ b/external/easylogging++/easylogging++.cc @@ -1711,6 +1711,8 @@ void TypedConfigurations::insertFile(Level level, const std::string& fullFilenam m_fileStreamMap.insert(std::make_pair(level, base::FileStreamPtr(nullptr))); return; #endif + 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 [" |