Update server.py

This commit is contained in:
Namhyeon Go 2024-11-14 16:17:04 +09:00 committed by GitHub
parent 50265ad56b
commit 943ff478aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -140,8 +140,8 @@ def conn_string(conn: socket.socket, data: bytes, addr: bytes):
return False
# debugging
logger.debug("@", addr)
logger.debug(">", data)
logger.debug("@ " + str(addr))
logger.debug("> " + str(data))
# JSON-RPC 2.0 request over Socket (stateful)
if data.find(b"{") == 0 and process_jsonrpc2(data):