mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Return stdout when a process crash for IOU, Dynamips, uBridge and VPCS.
This commit is contained in:
1 parent
9235c3a913
commit
83929119be
4 files changed
+11
-2
No files matched your search
@@ -279,8 +279,11 @@ class Router(BaseVM):
|
||||
:param returncode: Process returncode
|
||||
"""
|
||||
|
||||
self.status = "stopped"
|
||||
log.info("Dynamips hypervisor process has stopped, return code: %d", returncode)
|
||||
if self.status == "started":
|
||||
self.status = "stopped"
|
||||
log.info("Dynamips hypervisor process has stopped, return code: %d", returncode)
|
||||
if returncode != 0:
|
||||
self.project.emit("log.error", {"message": "Dynamips hypervisor process has stopped, return code: {}\n{}".format(returncode, self._hypervisor.read_stdout())})
|
||||
|
||||
@asyncio.coroutine
|
||||
def stop(self):
|
||||
|
||||
Reference in new issue
Block a user