refactor(backend_server.py): change log levels
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user