Change print to logger, so we can set a level and log exc_info

This commit is contained in:
Thomas Jackson 2015-07-03 15:53:31 -07:00
parent a723af0f10
commit 9a1351eada

View File

@ -107,7 +107,7 @@ def start():
)
http_server.start(mod_opts['num_processes'])
except:
print('Rest_tornado unable to bind to port {0}'.format(mod_opts['port']))
logger.error('Rest_tornado unable to bind to port {0}'.format(mod_opts['port']), exc_info=True)
raise SystemExit(1)
try: