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

This commit is contained in:
grossmj committed 2014-04-30 10:17:45 -06:00
1 parent 31866113e4
commit e7d9f73e1e
2 files changed
+6 -5

No files matched your search

+5 -4
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