1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Add console debug

This commit is contained in:
Julien Duponchelle 2015-01-27 11:39:13 +01:00
parent e60366c5bb
commit 29a4a0634d

View File

@ -35,6 +35,15 @@ class Response(aiohttp.web.Response):
headers['Server'] = "Python/{0[0]}.{0[1]} GNS3/{1}".format(sys.version_info, __version__)
super().__init__(headers=headers, **kwargs)
def start(self, request):
log.debug("{} {}".format(self.status, self.reason))
log.debug(dict(self.headers))
return super().start(request)
def write(self, data):
log.debug(data)
return super().write(data)
"""
Set the response content type to application/json and serialize
the content.