aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-02-22 11:39:38 -0800
committerMartin Braun <martin.braun@ettus.com>2019-02-22 16:12:50 -0800
commitd05fb0ded0cb1228c95c2aface0129524a82e831 (patch)
treeec6a94ba68777ea634a1f3b8858fd3a224c134b6 /mpm/python
parent8ca9a0cd06251cd2f44708b8a89f97bdb3efce1a (diff)
downloaduhd-d05fb0ded0cb1228c95c2aface0129524a82e831.tar.gz
uhd-d05fb0ded0cb1228c95c2aface0129524a82e831.tar.bz2
uhd-d05fb0ded0cb1228c95c2aface0129524a82e831.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/python')
-rw-r--r--mpm/python/usrp_mpm/rpc_server.py7
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(