From 9734c32bac199e429a5e13db6302a582bd7d5d2c Mon Sep 17 00:00:00 2001 From: "Jarisch, Ferdinand" Date: Wed, 27 Sep 2023 08:03:36 +0200 Subject: [PATCH] fixup! feat(log): Separate logger objects from class objects --- src/gallia/commands/discover/doip.py | 2 +- src/gallia/transports/doip.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallia/commands/discover/doip.py b/src/gallia/commands/discover/doip.py index 954a0bcaf..704acc512 100644 --- a/src/gallia/commands/discover/doip.py +++ b/src/gallia/commands/discover/doip.py @@ -420,7 +420,7 @@ async def read_diag_request_custom( while True: hdr, payload = await conn.read_frame() if not isinstance(payload, DiagnosticMessage): - self.logger.warning(f"[🧨] Unexpected DoIP message: {hdr} {payload}") + logger.warning(f"[🧨] Unexpected DoIP message: {hdr} {payload}") return None, b"" if payload.SourceAddress != conn.target_addr: return payload.SourceAddress, payload.UserData diff --git a/src/gallia/transports/doip.py b/src/gallia/transports/doip.py index d1a6f51bf..ed4e0d4f5 100644 --- a/src/gallia/transports/doip.py +++ b/src/gallia/transports/doip.py @@ -470,7 +470,7 @@ async def _read_routing_activation_response(self) -> None: while True: hdr, payload = await self.read_frame_unsafe() if not isinstance(payload, RoutingActivationResponse): - self.logger.warning( + logger.warning( f"expected DoIP RoutingActivationResponse, instead got: {hdr} {payload}" ) unexpected_packets.append((hdr, payload))