From 50265ad56b1283e97f3be1a009737b7abca05c16 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 14 Nov 2024 15:26:09 +0900 Subject: [PATCH] Update server.py --- server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server.py b/server.py index 56ea8d3..8fe2d7b 100644 --- a/server.py +++ b/server.py @@ -139,6 +139,10 @@ def conn_string(conn: socket.socket, data: bytes, addr: bytes): return True return False + # debugging + logger.debug("@", addr) + logger.debug(">", data) + # JSON-RPC 2.0 request over Socket (stateful) if data.find(b"{") == 0 and process_jsonrpc2(data): # will be close by the client