mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Client disconnect should not be logged as an error
This commit is contained in:
parent
ccd29ab500
commit
6d678898ef
@ -190,7 +190,7 @@ class Route(object):
|
|||||||
response.set_status(408)
|
response.set_status(408)
|
||||||
response.json({"message": "Request canceled", "status": 408})
|
response.json({"message": "Request canceled", "status": 408})
|
||||||
except aiohttp.ClientDisconnectedError:
|
except aiohttp.ClientDisconnectedError:
|
||||||
log.error("Client disconnected")
|
log.warn("Client disconnected")
|
||||||
response = Response(request=request, route=route)
|
response = Response(request=request, route=route)
|
||||||
response.set_status(408)
|
response.set_status(408)
|
||||||
response.json({"message": "Client disconnected", "status": 408})
|
response.json({"message": "Client disconnected", "status": 408})
|
||||||
|
Loading…
Reference in New Issue
Block a user