Log server disconnection as error, not info

This commit is contained in:
Davte 2020-04-12 19:26:46 +02:00
parent 5f0ed1295f
commit 932760bcb6

View File

@ -114,7 +114,7 @@ class Client:
while 1: while 1:
server_hello = await reader.readline() server_hello = await reader.readline()
if not server_hello: if not server_hello:
logging.info("Server disconnected.") logging.error("Server disconnected.")
return return
server_hello = server_hello.decode('utf-8').strip('\n') server_hello = server_hello.decode('utf-8').strip('\n')
if server_hello == 'start!': if server_hello == 'start!':