Skip to content

Commit

Permalink
feat(app): log version on start up
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Nov 30, 2023
1 parent 9f95f1f commit dd18814
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eligibility_server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
import logging

from flask import Flask, jsonify, make_response
from flask_restful import Api
from flask.logging import default_handler
from flask_restful import Api

from eligibility_server import db, sentry
from eligibility_server import __version__, db, sentry
from eligibility_server.keypair import get_server_public_key
from eligibility_server.settings import Configuration
from eligibility_server.verify import Verify


config = Configuration()

app = Flask(__name__)
Expand All @@ -29,6 +28,7 @@
# configure Flask's logger
app.logger.setLevel(config.log_level)
default_handler.formatter = logging.Formatter(format_string)
app.logger.info(f"Starting Eligibility Server {__version__}")


def TextResponse(content):
Expand Down

0 comments on commit dd18814

Please sign in to comment.