refactor(backend_server.py): change log levels

This commit is contained in:
2025-11-30 18:30:59 +01:00
parent f365139e9f
commit 8d2b8f9519

View File

@@ -70,7 +70,7 @@ class BackendServer:
target_id (str): The id of the ACK'd message.
"""
ack: bytes = Message.ack(target_id=target_id).to_bytes()
self.logger.debug(f"[>] Sending ACK to {client}")
self.logger.info(f"[>] Sending ACK to {client}")
client.outbound += ack
def _accept_connection(self, sock: socket.socket) -> None:
@@ -195,9 +195,10 @@ class BackendServer:
)
self._disconnect(client)
return
while b"\n" in client.inbound:
line, client.inbound = client.inbound.split(b"\n", 1)
self.logger.info(
self.logger.debug(
f"[<] Complete message from {client}: {line!r}"
)
try: