Skip to content

Commit 144c30b

Browse files
chfastaxic
authored andcommitted
jsonrpcproxy: Fix init message
1 parent e43cf6f commit 144c30b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/jsonrpcproxy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def do_POST(self):
185185
self.wfile.write(error_msg)
186186
self.log_message("Backend Error: {}".format(err))
187187

188-
# TODO: Handle other excaptions as error 500.
188+
# TODO: Handle other exceptions as error 500.
189189

190190
def addCORS(self):
191191
self.send_header("Access-Control-Allow-Origin", "*")
@@ -206,8 +206,8 @@ def __init__(self, proxy_url, backend_path):
206206
self.backend_address = path.expanduser(backend_path)
207207
self.conn = get_ipc_connector(self.backend_address)
208208

209-
sys.stderr.write("JSON-RPC HTTP Proxy: {} -> {}\n".format(
210-
self.backend_address, proxy_url))
209+
print("JSON-RPC HTTP Proxy: {} -> {}".format(
210+
self.backend_address, proxy_url), file=sys.stderr, flush=True)
211211

212212
def process(self, request):
213213
self.conn.sendall(request)

0 commit comments

Comments
 (0)