Skip to content

Commit

Permalink
log every exception if abort-on-exception flag is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Fanda Vacek committed Jan 4, 2023
1 parent aff0758 commit 3f5734f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libshvchainpack/src/chainpack/exception.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f5734f

Please sign in to comment.