mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-17 13:59:06 +00:00
Fix crash in debug log
This commit is contained in:
parent
0abf2e82d6
commit
30f10a559e
@ -43,7 +43,7 @@ class Response(aiohttp.web.Response):
|
|||||||
log.debug("%s", request.json)
|
log.debug("%s", request.json)
|
||||||
log.info("Response: %d %s", self.status, self.reason)
|
log.info("Response: %d %s", self.status, self.reason)
|
||||||
log.debug(dict(self.headers))
|
log.debug(dict(self.headers))
|
||||||
if hasattr(self, 'body'):
|
if hasattr(self, 'body') and self.body is not None:
|
||||||
log.debug(json.loads(self.body.decode('utf-8')))
|
log.debug(json.loads(self.body.decode('utf-8')))
|
||||||
return super().start(request)
|
return super().start(request)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user