diff options
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_mboard_impl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp index bd37e5ffb..bd792ce59 100644 --- a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp +++ b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp @@ -210,6 +210,11 @@ mpmd_mboard_impl::mpmd_mboard_impl( mpmd_mboard_impl::~mpmd_mboard_impl() { + try { + dump_logs(); + } catch (...) { + UHD_LOG_WARNING("MPMD", "Could not flush log queue on exit!"); + } UHD_SAFE_CALL( if (not rpc->request_with_token<bool>("unclaim")) { UHD_LOG_WARNING("MPMD", "Failure to ack unclaim!"); @@ -355,6 +360,7 @@ uhd::task::sptr mpmd_mboard_impl::claim_device_and_make_task( if (not this->claim()) { throw uhd::value_error("mpmd device reclaiming loop failed!"); }; + this->dump_logs(); std::this_thread::sleep_for( std::chrono::milliseconds(MPMD_RECLAIM_INTERVAL_MS) ); |