From 3f5734f00f44a669b37dd3c276a41c2d95c37c02 Mon Sep 17 00:00:00 2001 From: Fanda Vacek Date: Wed, 4 Jan 2023 20:53:35 +0100 Subject: [PATCH] log every exception if abort-on-exception flag is set --- libshvchainpack/src/chainpack/exception.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libshvchainpack/src/chainpack/exception.cpp b/libshvchainpack/src/chainpack/exception.cpp index ceb1bb922..96dfca287 100644 --- a/libshvchainpack/src/chainpack/exception.cpp +++ b/libshvchainpack/src/chainpack/exception.cpp @@ -17,7 +17,7 @@ Exception::Exception(const std::string &_msg, const std::string &_where, const c : m_msg(_msg) , m_where(_where) { - if(!_where.empty() || (_log_topic && *_log_topic)) { + if(isAbortOnException() || !_where.empty() || (_log_topic && *_log_topic)) { if(_log_topic && *_log_topic) nCError(_log_topic) << "SHV_EXCEPTION:" << _where << _msg; else