Browse Source

Merge branch 'trac3314'

Mukund Sivaraman 11 years ago
parent
commit
3327e16875
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/lib/log/log_formatter.h

+ 6 - 2
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_;
         }
     }