Commit 7058dd16 authored by JINMEI Tatuya's avatar JINMEI Tatuya Committed by Mukund Sivaraman
Browse files

[3314] Add a catch-all to logger Formatter destructor

parent 9c9e6fb5
......@@ -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_;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment