Print python version upon start

This commit is contained in:
Bálint Bokros 2017-11-21 10:25:57 +01:00
parent 9c97c0d7ed
commit e08be83c5e

2
app.py
View File

@ -1,4 +1,5 @@
import logging
import sys
import tornado
import zmq
@ -21,6 +22,7 @@ if __name__ == '__main__':
)
application.listen(WEB_PORT)
logging.getLogger().setLevel(logging.DEBUG)
logging.debug('Python version: {}'.format(sys.version[:5]))
logging.debug('Tornado version: {}'.format(tornado.version))
logging.debug('ZeroMQ version: {}'.format(zmq.zmq_version()))
logging.debug('PyZMQ version: {}'.format(zmq.pyzmq_version()))