Skip to content

Commit a53f195

Browse files
committed
server: less verbosity on normal flow
only print debug error if there is an unexpected error when starting the server (we expect an error when opening the socket, ie. the port is already used).
1 parent 65aef5a commit a53f195

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ def start(cls):
119119
assert "details" in infos, "expected 'details' field in {}".format(infos)
120120
assert "context" in infos, "expected 'context' field in {}".format(infos)
121121

122-
print("JSONComma:", infos)
122+
if infos["context"] != "opening socket":
123+
print("JSONComma: unexpected error trying to open new server", infos)
124+
123125
print("JSONComma: assume already running")
124126
return
125127

0 commit comments

Comments
 (0)