Skip to content

Commit

Permalink
API: Show the listening port at startup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joscorbe committed Aug 4, 2016
1 parent 8e528c0 commit f0d212e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dbod/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@ def __init__(self):
http_server.listen(options.port)

# Starting
logging.info("Starting application")
logging.info("Starting application on port: " + str(port))
tornado.ioloop.IOLoop.instance().start()
3 changes: 3 additions & 0 deletions dbod/api/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ def get(self, name):
else:
logging.error("Entity metadata not found: " + name)
raise tornado.web.HTTPError(NOT_FOUND)
else:
logging.error("Entity metadata not found: " + name)
raise tornado.web.HTTPError(NOT_FOUND)

def post(self, instance):
"""Inserts a new instance in the database"""
Expand Down

0 comments on commit f0d212e

Please sign in to comment.