diff options
author | Vidush <vidush.vishwanath@ettus.com> | 2018-05-21 09:46:18 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-06-06 14:58:54 -0700 |
commit | 682feb3f6c18fc0780528adfeb8fc59368f9e48e (patch) | |
tree | cbe88ffb67c80ceb57472e4fbd1bfa22613cfd02 /host | |
parent | 4461cda3a5dd074f6e5fbb09868a60b818e6c4f1 (diff) | |
download | uhd-682feb3f6c18fc0780528adfeb8fc59368f9e48e.tar.gz uhd-682feb3f6c18fc0780528adfeb8fc59368f9e48e.tar.bz2 uhd-682feb3f6c18fc0780528adfeb8fc59368f9e48e.zip |
Log: Handle Exceptions in Destructor
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/utils/log.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/host/lib/utils/log.cpp b/host/lib/utils/log.cpp index e975bccc0..8126d46b7 100644 --- a/host/lib/utils/log.cpp +++ b/host/lib/utils/log.cpp @@ -505,7 +505,10 @@ uhd::_log::log::~log(void) { if (_log_it) { this->_log_info.message = _ss.str(); - log_rs().push(this->_log_info); + try{ + log_rs().push(this->_log_info); + } + catch (...){} } } |