Skip to content

Commit

Permalink
Log all communication, including errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdwetering committed Sep 5, 2022
1 parent 98258c1 commit 3ff10be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ynca/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def handle_line(self, line):
value = None

logger.debug("> %s", line)
self._communication_log_buffer.add(f"Received: {line}")

if line == "@UNDEFINED":
status = YncaProtocolStatus.UNDEFINED
Expand All @@ -105,7 +106,6 @@ def handle_line(self, line):

match = re.match(r"@(?P<subunit>.+?):(?P<function>.+?)=(?P<value>.*)", line)
if match is not None:
self._communication_log_buffer.add(f"Received: {line}")
subunit = match.group("subunit")
function = match.group("function")
value = match.group("value")
Expand Down

0 comments on commit 3ff10be

Please sign in to comment.