diff options
Diffstat (limited to 'boost/test/impl/unit_test_log.ipp')
-rw-r--r-- | boost/test/impl/unit_test_log.ipp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/boost/test/impl/unit_test_log.ipp b/boost/test/impl/unit_test_log.ipp index 5f3fa6510d..c52260b94b 100644 --- a/boost/test/impl/unit_test_log.ipp +++ b/boost/test/impl/unit_test_log.ipp @@ -168,7 +168,7 @@ unit_test_log_t::test_start( counter_t test_cases_amount ) current_logger_data.m_log_formatter->log_start( current_logger_data.stream(), test_cases_amount ); - if( runtime_config::get<bool>( runtime_config::BUILD_INFO ) ) + if( runtime_config::get<bool>( runtime_config::btrt_build_info ) ) current_logger_data.m_log_formatter->log_build_info( current_logger_data.stream() ); current_logger_data.m_entry_in_progress = false; @@ -442,8 +442,11 @@ unit_test_log_t& unit_test_log_t::operator<<( lazy_ostream const& value ) { BOOST_TEST_FOREACH( unit_test_log_data_helper_impl&, current_logger_data, s_log_impl().m_log_formatter_data ) { - if( current_logger_data.m_enabled && s_log_impl().m_entry_data.m_level >= current_logger_data.get_log_level() && !value.empty() && log_entry_start(current_logger_data.m_format) ) - current_logger_data.m_log_formatter->log_entry_value( current_logger_data.stream(), value ); + if( current_logger_data.m_enabled && s_log_impl().m_entry_data.m_level >= current_logger_data.get_log_level() && !value.empty() ) { + if( log_entry_start(current_logger_data.m_format) ) { + current_logger_data.m_log_formatter->log_entry_value( current_logger_data.stream(), value ); + } + } } return *this; } |