summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-07-01 21:15:09 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-07-01 21:15:09 +0300
commitb550f96c1eba0c7f7b1565bcad65fea111bface1 (patch)
tree4b1e05eb9c7941d2f29c2f1f0aec91b60dec8f23
parent21cd2ad07ce444b2feeb7dd8d3f3c190cabd69aa (diff)
polaris: change some log message levels
-rw-r--r--src/polaris/kettle.py2
-rw-r--r--src/polaris/protocol.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/polaris/kettle.py b/src/polaris/kettle.py
index 1b995fd..6f76279 100644
--- a/src/polaris/kettle.py
+++ b/src/polaris/kettle.py
@@ -90,7 +90,7 @@ class DeviceDiscover(threading.Thread, zeroconf.ServiceListener):
# TODO what to do here?!
def run(self):
- self._logger.info('starting zeroconf service browser')
+ self._logger.debug('starting zeroconf service browser')
ip_version = zeroconf.IPVersion.V4Only if self._only_ipv4 else zeroconf.IPVersion.All
self._zc = zeroconf.Zeroconf(ip_version=ip_version)
self._sb = zeroconf.ServiceBrowser(self._zc, "_syncleo._udp.local.", self)
diff --git a/src/polaris/protocol.py b/src/polaris/protocol.py
index 3a171f8..680b6e1 100644
--- a/src/polaris/protocol.py
+++ b/src/polaris/protocol.py
@@ -1043,7 +1043,7 @@ class UDPConnection(threading.Thread, ConnectionStatusListener):
callback_value = incoming_message
self._incr_outseq()
else:
- self._logger.debug(f'{lpfx} response is INVALID')
+ self._logger.warning(f'{lpfx} response is INVALID')
# It seems that we've received an incoming CmdMessage or PingMessage with the same seqno that our outgoing
# message had. Bad, but what can I say, this is quick-and-dirty made UDP based protocol and this sort of