Skip to content

Commit 060ddcd

Browse files
authored
Merge pull request GeoffAtHome#12 from ColinRobbins/master
Turn down logging
2 parents 7cb3983 + 64f3fa9 commit 060ddcd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lightwave/lightwave.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ def _check_response(self, response, trans_id):
166166
_LOGGER.debug("got OK")
167167
return True
168168

169-
_LOGGER.error("error %s", response)
169+
if response.startswith("%d,ERR" % trans_id):
170+
_LOGGER.error("error %s", response)
170171

171172
return False
172173

@@ -228,7 +229,7 @@ def _send_reliable_message(self, msg):
228229
raise
229230

230231
if result:
231-
_LOGGER.info("LW broker OK!")
232+
_LOGGER.debug("LW broker OK!")
232233
else:
233234
if err:
234235
_LOGGER.error("LW broker fail (%s)!", err)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name='lightwave',
8-
version='0.22',
8+
version='0.24',
99
description='Python library to provide a reliable communication link with LightWaveRF lights, switches and TRVs.',
1010
url='https://github.com/GeoffAtHome/lightwave',
1111
author='Geoff Soord',

0 commit comments

Comments
 (0)