Skip to content

Commit

Permalink
fixup! feat(log): Separate logger objects from class objects
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdinandjarisch committed Sep 27, 2023
1 parent 7654f47 commit 9734c32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gallia/commands/discover/doip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/gallia/transports/doip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 9734c32

Please sign in to comment.