fix bug where default logging is optimized out in release builds
This commit is contained in:
parent
a43bdf2ab7
commit
b379449cda
2 changed files with 3 additions and 1 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include <fc/filesystem.hpp>
|
||||
#include <unordered_map>
|
||||
#include <string>
|
||||
#include <fc/log/logger_config.hpp>
|
||||
|
||||
namespace fc {
|
||||
|
||||
|
|
@ -105,5 +106,7 @@ namespace fc {
|
|||
return my->_appenders;
|
||||
}
|
||||
|
||||
bool configure_logging( const logging_config& cfg );
|
||||
bool do_default_config = configure_logging( logging_config::default_config() );
|
||||
|
||||
} // namespace fc
|
||||
|
|
|
|||
|
|
@ -85,5 +85,4 @@ namespace fc {
|
|||
cfg.loggers.push_back( dlc );
|
||||
return cfg;
|
||||
}
|
||||
bool do_default_config = configure_logging( logging_config::default_config() );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue