From e606ba3aa0aa2a0882f01bfec684b726c50e1abc Mon Sep 17 00:00:00 2001 From: Yauheni Akhotnikau Date: Wed, 17 Mar 2021 13:00:15 +0300 Subject: [PATCH] Bugfix: wrong handling of console_target in log params. --- arataga/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arataga/main.cpp b/arataga/main.cpp index 9c6991c..8e633e5 100644 --- a/arataga/main.cpp +++ b/arataga/main.cpp @@ -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"; @@ -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) );