mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Change print to logger, so we can set a level and log exc_info
This commit is contained in:
parent
a723af0f10
commit
9a1351eada
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user