From 4dc55a5af44e6f38a709caa125d6458ef8c43e79 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 22 May 2017 13:57:32 +0200 Subject: [PATCH] Improve logging for remote server connection lost Ref https://github.com/GNS3/gns3-gui/issues/2074 --- gns3server/controller/compute.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gns3server/controller/compute.py b/gns3server/controller/compute.py index 6a4ac0ce..986320fc 100644 --- a/gns3server/controller/compute.py +++ b/gns3server/controller/compute.py @@ -580,8 +580,10 @@ class Compute: Forward a call to the emulator on compute """ try: - res = yield from self.http_query(method, "/{}/{}".format(type, path), data=data, timeout=None) + action = "/{}/{}".format(type, path) + res = yield from self.http_query(method, action, data=data, timeout=None) except aiohttp.errors.DisconnectedError: + log.error("Connection lost to %s during %s %s", self._id, method, action) raise aiohttp.web.HTTPGatewayTimeout() return res.json