Client disconnect should not be logged as an error

This commit is contained in:
Julien Duponchelle 2015-07-11 21:10:59 +02:00
parent ccd29ab500
commit 6d678898ef

View File

@ -190,7 +190,7 @@ class Route(object):
response.set_status(408)
response.json({"message": "Request canceled", "status": 408})
except aiohttp.ClientDisconnectedError:
log.error("Client disconnected")
log.warn("Client disconnected")
response = Response(request=request, route=route)
response.set_status(408)
response.json({"message": "Client disconnected", "status": 408})