Skip to content

Commit

Permalink
Formatting Logger output
Browse files Browse the repository at this point in the history
Formatted logger output to match more traditional way of representing what interface(ip) and what port you are listening on HOST:PORT
  • Loading branch information
ibigpapa committed Sep 29, 2016
1 parent 57d1857 commit a7912f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connexion/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,15 +272,15 @@ def run(self, port=None, server=None, debug=None, host=None, **options): # prag
wsgi_container = tornado.wsgi.WSGIContainer(self.app)
http_server = tornado.httpserver.HTTPServer(wsgi_container, **options)
http_server.listen(self.port, address=host)
logger.info('Listening on port %s.. on interface %s..', self.port, host)
logger.info('Listening on %s:%s..', host, self.port)
tornado.ioloop.IOLoop.instance().start()
elif self.server == 'gevent':
try:
import gevent.wsgi
except:
raise Exception('gevent library not installed')
http_server = gevent.wsgi.WSGIServer((self.host, self.port), self.app, **options)
logger.info('Listening on port %s..', self.port)
logger.info('Listening on %s:%s..', host, self.port)
http_server.serve_forever()
else:
raise Exception('Server %s not recognized', self.server)
Expand Down

0 comments on commit a7912f6

Please sign in to comment.