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

Display the ZeroMQ version when the server starts. Fixes #8.

This commit is contained in:
grossmj 2014-04-30 10:17:45 -06:00
parent 31866113e4
commit e7d9f73e1e
2 changed files with 6 additions and 5 deletions

View File

@ -500,6 +500,6 @@ class Dynamips(IModule):
try:
response = self._get_windows_interfaces()
except ImportError:
self.send_custom_error("Optional pywin32 module is not installed, please install it on the server to get the available interface names")
self.send_custom_error("pywin32 module is not installed, please install it on the server to get the available interface names")
return
self.send_response(response)

View File

@ -145,10 +145,11 @@ class Server(object):
debug=True) # FIXME: debug mode!
try:
print("Starting server on {}:{} (Tornado v{}, PyZMQ v{})".format(self._host,
self._port,
tornado.version,
zmq.__version__))
print("Starting server on {}:{} (Tornado v{}, PyZMQ v{}, ZMQ v{})".format(self._host,
self._port,
tornado.version,
zmq.__version__,
zmq.zmq_version()))
kwargs = {"address": self._host}
if parse_version(tornado.version) >= parse_version("3.1"):
kwargs["max_buffer_size"] = 524288000 # 500 MB file upload limit