Skip to content

Commit

Permalink
Bugfix: wrong handling of console_target in log params.
Browse files Browse the repository at this point in the history
  • Loading branch information
eao197 committed Mar 17, 2021
1 parent 676087d commit e606ba3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arataga/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
namespace {

const char version_string[] =
R"ver(arataga v.0.2.1
R"ver(arataga v.0.2.2
(c) 2020-2021 stiffstream (https://stiffstream.com)
)ver";
Expand Down Expand Up @@ -156,7 +156,8 @@ struct log_params_t
std::ostream &
operator<<( std::ostream & o, const log_params_t & params )
{
fmt::print( o, "(console_target {}) ", *(params.m_console_target) );
if(params.m_console_target)
fmt::print( o, "(console_target {}) ", *(params.m_console_target) );

if(params.m_syslog_target)
fmt::print( o, "(syslog_target {}) ", *(params.m_syslog_target) );
Expand Down

0 comments on commit e606ba3

Please sign in to comment.