aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/discovery.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-03-06 15:16:22 -0800
committerMartin Braun <martin.braun@ettus.com>2018-03-06 15:28:33 -0800
commited2d1ac3e47f107ebef8845130ad60ea2777443c (patch)
treebfc80a509dc4855f62d69f032cea02ce9fee0b95 /mpm/python/usrp_mpm/discovery.py
parent38a7bcbff496ad1097c158ae1ba847abeab6d144 (diff)
downloaduhd-ed2d1ac3e47f107ebef8845130ad60ea2777443c.tar.gz
uhd-ed2d1ac3e47f107ebef8845130ad60ea2777443c.tar.bz2
uhd-ed2d1ac3e47f107ebef8845130ad60ea2777443c.zip
mpm: Demote some log messages
The log output at level 'INFO' was pretty cluttered. This cleans up the log messages at the higher levels. In some cases, log message typos or capitalizations were also fixed.
Diffstat (limited to 'mpm/python/usrp_mpm/discovery.py')
-rw-r--r--mpm/python/usrp_mpm/discovery.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/mpm/python/usrp_mpm/discovery.py b/mpm/python/usrp_mpm/discovery.py
index c1a894276..2efd25b80 100644
--- a/mpm/python/usrp_mpm/discovery.py
+++ b/mpm/python/usrp_mpm/discovery.py
@@ -75,25 +75,25 @@ def _discovery_process(state, discovery_addr):
try:
while True:
data, sender = sock.recvfrom(MAX_MTU)
- log.info("Got poked by: %s", sender[0])
+ log.debug("Got poked by: %s", sender[0])
# TODO this is still part of the awful subnet identification
if not sender[0].startswith(discovery_addr_prefix):
continue
if data.strip(b"\0") == b"MPM-DISC":
- log.info("Sending discovery response to %s port: %d",
+ log.debug("Sending discovery response to %s port: %d",
sender[0], sender[1])
resp_str = create_response_string(state)
send_data = resp_str
- log.info(send_data)
+ log.trace("Return data: %s", send_data)
send_sock.sendto(send_data, sender)
elif data.strip(b"\0").startswith(b"MPM-ECHO"):
- log.info("Received echo request from {sender}"
+ log.debug("Received echo request from {sender}"
.format(sender=sender[0]))
send_data = data
try:
send_sock.sendto(send_data, sender)
except OSError as ex:
- log.debug("ECHO send error: %s", str(ex))
+ log.warning("ECHO send error: %s", str(ex))
except Exception as err:
log.error("Unexpected error: `%s' Type: `%s'", str(err), type(err))
sock.close()