aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/utils/log.cpp
diff options
context:
space:
mode:
authorVidush <vidush.vishwanath@ettus.com>2018-05-21 09:46:18 -0700
committerMartin Braun <martin.braun@ettus.com>2018-06-06 14:58:54 -0700
commit682feb3f6c18fc0780528adfeb8fc59368f9e48e (patch)
treecbe88ffb67c80ceb57472e4fbd1bfa22613cfd02 /host/lib/utils/log.cpp
parent4461cda3a5dd074f6e5fbb09868a60b818e6c4f1 (diff)
downloaduhd-682feb3f6c18fc0780528adfeb8fc59368f9e48e.tar.gz
uhd-682feb3f6c18fc0780528adfeb8fc59368f9e48e.tar.bz2
uhd-682feb3f6c18fc0780528adfeb8fc59368f9e48e.zip
Log: Handle Exceptions in Destructor
Diffstat (limited to 'host/lib/utils/log.cpp')
-rw-r--r--host/lib/utils/log.cpp5
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 (...){}
}
}