fix bug where default logging is optimized out in release builds

This commit is contained in:
Daniel Larimer 2014-06-07 17:34:26 -04:00
parent a43bdf2ab7
commit b379449cda
2 changed files with 3 additions and 1 deletions

View file

@ -7,6 +7,7 @@
#include <fc/filesystem.hpp> #include <fc/filesystem.hpp>
#include <unordered_map> #include <unordered_map>
#include <string> #include <string>
#include <fc/log/logger_config.hpp>
namespace fc { namespace fc {
@ -105,5 +106,7 @@ namespace fc {
return my->_appenders; return my->_appenders;
} }
bool configure_logging( const logging_config& cfg );
bool do_default_config = configure_logging( logging_config::default_config() );
} // namespace fc } // namespace fc

View file

@ -85,5 +85,4 @@ namespace fc {
cfg.loggers.push_back( dlc ); cfg.loggers.push_back( dlc );
return cfg; return cfg;
} }
bool do_default_config = configure_logging( logging_config::default_config() );
} }