diff options
Diffstat (limited to 'src/lib/log/log_formatter.h')
-rw-r--r-- | src/lib/log/log_formatter.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/log/log_formatter.h b/src/lib/log/log_formatter.h index 8cb34c7314..d336b30973 100644 --- a/src/lib/log/log_formatter.h +++ b/src/lib/log/log_formatter.h @@ -163,8 +163,12 @@ public: /// This is the place where output happens if the formatter is active. ~ Formatter() { if (logger_) { - checkExcessPlaceholders(message_, ++nextPlaceholder_); - logger_->output(severity_, *message_); + try { + checkExcessPlaceholders(message_, ++nextPlaceholder_); + logger_->output(severity_, *message_); + } catch (...) { + // Catch and ignore all exceptions here. + } delete message_; } } |