From 86b95486ed6d68e2772d79f20feddbef5439981b Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 13 Mar 2018 16:16:29 -0700 Subject: mpm: Add INFO log statements on MPM reset and component update --- mpm/python/usrp_mpm/periph_manager/base.py | 1 + mpm/python/usrp_mpm/rpc_server.py | 1 + 2 files changed, 2 insertions(+) diff --git a/mpm/python/usrp_mpm/periph_manager/base.py b/mpm/python/usrp_mpm/periph_manager/base.py index 60eaee244..f2b2aeb37 100644 --- a/mpm/python/usrp_mpm/periph_manager/base.py +++ b/mpm/python/usrp_mpm/periph_manager/base.py @@ -552,6 +552,7 @@ class PeriphManagerBase(object): f.write(data) update_func = \ getattr(self, self.updateable_components[id_str]['callback']) + self.log.info("Updating component `%s'", id_str) update_func(filepath, metadata) return True diff --git a/mpm/python/usrp_mpm/rpc_server.py b/mpm/python/usrp_mpm/rpc_server.py index a983b6dcf..e1803918d 100644 --- a/mpm/python/usrp_mpm/rpc_server.py +++ b/mpm/python/usrp_mpm/rpc_server.py @@ -453,6 +453,7 @@ class MPMServer(RPCServer): """ Reset the Peripheral Manager for this RPC server. """ + self.log.info("Resetting peripheral manager.") self.periph_manager.tear_down() self.periph_manager = None self.periph_manager = self._mgr_generator() -- cgit v1.2.3