From dda907acf1f06b616c7272d548f9dc66f28d01ea Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 8 Jan 2018 18:53:23 -0800 Subject: mpmd: Poll logs on claim and exit --- host/lib/usrp/mpmd/mpmd_mboard_impl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'host/lib/usrp/mpmd/mpmd_mboard_impl.cpp') 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("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) ); -- cgit v1.2.3