From 8d522de7e7e2c9b37de34210077bcbe9618b54a5 Mon Sep 17 00:00:00 2001 From: Daniel Pavel Date: Fri, 21 Jun 2013 16:39:04 +0200 Subject: [PATCH] drop some unnecessary logging when ignoring request replies --- lib/logitech/unifying_receiver/base.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/logitech/unifying_receiver/base.py b/lib/logitech/unifying_receiver/base.py index b71aa89d..a2330389 100644 --- a/lib/logitech/unifying_receiver/base.py +++ b/lib/logitech/unifying_receiver/base.py @@ -395,10 +395,10 @@ def request(handle, devnumber, request_id, *params): n = make_notification(reply_devnumber, reply_data) if n: notifications_hook(n) - elif _log.isEnabledFor(_DEBUG): - _log.debug("(%s) ignoring reply %02X [%s]", handle, reply_devnumber, _strhex(reply_data)) - elif _log.isEnabledFor(_DEBUG): - _log.debug("(%s) ignoring reply %02X [%s]", handle, reply_devnumber, _strhex(reply_data)) + # elif _log.isEnabledFor(_DEBUG): + # _log.debug("(%s) ignoring reply %02X [%s]", handle, reply_devnumber, _strhex(reply_data)) + # elif _log.isEnabledFor(_DEBUG): + # _log.debug("(%s) ignoring reply %02X [%s]", handle, reply_devnumber, _strhex(reply_data)) delta = _timestamp() - request_started # if _log.isEnabledFor(_DEBUG): @@ -467,6 +467,8 @@ def ping(handle, devnumber): n = make_notification(reply_devnumber, reply_data) if n: notifications_hook(n) + # elif _log.isEnabledFor(_DEBUG): + # _log.debug("(%s) ignoring reply %02X [%s]", handle, reply_devnumber, _strhex(reply_data)) delta = _timestamp() - request_started