diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-02-22 11:39:38 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-02-22 16:12:23 -0800 |
commit | 435a1f13b8b38e325bf46cd6bec9061ee9f0172d (patch) | |
tree | a6768db386c576e80519c22e15656890ae5e6667 /mpm | |
parent | 2a4f196068768715b5c0571781c96ffd406a6c82 (diff) | |
download | uhd-435a1f13b8b38e325bf46cd6bec9061ee9f0172d.tar.gz uhd-435a1f13b8b38e325bf46cd6bec9061ee9f0172d.tar.bz2 uhd-435a1f13b8b38e325bf46cd6bec9061ee9f0172d.zip |
mpm: rpc_server: Improve error message on double-claim
The error message will now include the IP address of the client trying
to double-claim a device.
Diffstat (limited to 'mpm')
-rw-r--r-- | mpm/python/usrp_mpm/rpc_server.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mpm/python/usrp_mpm/rpc_server.py b/mpm/python/usrp_mpm/rpc_server.py index 35202efa9..c67bf769b 100644 --- a/mpm/python/usrp_mpm/rpc_server.py +++ b/mpm/python/usrp_mpm/rpc_server.py @@ -268,8 +268,11 @@ class MPMServer(RPCServer): """ self._state.lock.acquire() if self._state.claim_status.value: - self.log.warning("Someone tried to claim this device again") - self._last_error = "Someone tried to claim this device again" + error_msg = \ + "Someone tried to claim this device again (From: {})".format( + self.client_host) + self.log.warning(error_msg) + self._last_error = error_msg self._state.lock.release() raise RuntimeError("Double-claim") self.log.debug( |