Skip to content

Commit

Permalink
Added a version output to the API server before serving.
Browse files Browse the repository at this point in the history
  • Loading branch information
eriq-augustine committed Jun 27, 2024
1 parent b297339 commit 183973e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sharkclipper/api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import sharkclipper.api.handlers
import sharkclipper.util.file
import sharkclipper.util.rand
import sharkclipper.util.version

DEFAULT_PORT = 12345
ENCODING = 'utf-8'
Expand Down Expand Up @@ -162,6 +163,7 @@ def _route(self, path, **kwargs):
return str(ex), http.HTTPStatus.INTERNAL_SERVER_ERROR, None

def run(port = DEFAULT_PORT, **kwargs):
logging.info("Starting Shark Clipper server version %s." % (sharkclipper.util.version.get_version()))
logging.info("Serving on http://127.0.0.1:%d ." % (port))

Handler.init(**kwargs)
Expand Down

0 comments on commit 183973e

Please sign in to comment.