Merge pull request #68 from channelcat/server-start-exception

Changed start failure to print exception
This commit is contained in:
Channel Cat 2016-10-18 16:51:58 -07:00 committed by GitHub
commit f34fa40ed2

View File

@ -180,7 +180,7 @@ def serve(host, port, request_handler, after_start=None, before_stop=None,
try:
http_server = loop.run_until_complete(server_coroutine)
except Exception as e:
log.error("Unable to start server: {}".format(e))
log.exception("Unable to start server")
return
# Run the on_start function if provided