prevent crash in elpp when verbose logging is enabled

This commit is contained in:
Valient Gough 2016-09-15 17:01:11 -07:00
parent b2a0e892c7
commit f418b05ed5
No known key found for this signature in database
GPG Key ID: B515DCEB95967051

View File

@ -13,6 +13,7 @@ void initLogging(bool enable_debug) {
defaultConf.setToDefault();
defaultConf.set(el::Level::Verbose, el::ConfigurationType::Format,
std::string("%datetime %level [%fbase:%line] %msg"));
defaultConf.set(el::Level::Global, el::ConfigurationType::ToFile, "false");
if (!enable_debug) {
defaultConf.set(el::Level::Debug, el::ConfigurationType::Enabled, "false");
}