mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 15:33:49 +02:00
Correctly display log messages.
This commit is contained in:
parent
e4735308f8
commit
9ca72f3bbc
@ -268,7 +268,7 @@ class DynamipsHypervisor:
|
|||||||
yield from self._writer.drain()
|
yield from self._writer.drain()
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
raise DynamipsError("Could not send Dynamips command '{command}' to {host}:{port}: {error}, process running: {run}"
|
raise DynamipsError("Could not send Dynamips command '{command}' to {host}:{port}: {error}, process running: {run}"
|
||||||
.format(command=command, host=self._host, port=self._port, error=e, run=self.is_running()))
|
.format(command=command.strip(), host=self._host, port=self._port, error=e, run=self.is_running()))
|
||||||
|
|
||||||
# Now retrieve the result
|
# Now retrieve the result
|
||||||
data = []
|
data = []
|
||||||
@ -294,7 +294,7 @@ class DynamipsHypervisor:
|
|||||||
buf += chunk.decode("utf-8", errors="ignore")
|
buf += chunk.decode("utf-8", errors="ignore")
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
raise DynamipsError("Could not read response for '{command}' from {host}:{port}: {error}, process running: {run}"
|
raise DynamipsError("Could not read response for '{command}' from {host}:{port}: {error}, process running: {run}"
|
||||||
.format(command=command, host=self._host, port=self._port, error=e, run=self.is_running()))
|
.format(command=command.strip(), host=self._host, port=self._port, error=e, run=self.is_running()))
|
||||||
|
|
||||||
# If the buffer doesn't end in '\n' then we can't be done
|
# If the buffer doesn't end in '\n' then we can't be done
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user