From 3ff10beb2024360d3387144c5618a762c134d8fb Mon Sep 17 00:00:00 2001 From: Michel van de Wetering Date: Mon, 5 Sep 2022 17:54:22 +0200 Subject: [PATCH] Log all communication, including errors --- ynca/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ynca/connection.py b/ynca/connection.py index 8f393a4..dbeb0db 100644 --- a/ynca/connection.py +++ b/ynca/connection.py @@ -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 @@ -105,7 +106,6 @@ def handle_line(self, line): match = re.match(r"@(?P.+?):(?P.+?)=(?P.*)", 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")