Commit 1de3d80d authored by Jerome Touvier's avatar Jerome Touvier
Browse files

Merge branch 'fix' into 'master'

fix logging

See merge request !23
parents f8ce2194 bfe27c41
Pipeline #54942 passed with stage
in 48 seconds
......@@ -11,7 +11,7 @@ from config import Config
app = Flask(__name__)
FMT = "[%(asctime)s] %(levelname)s [%(filename)s:%(lineno)d] [%(funcName)s] %(message)s"
LOGLEVEL = logging.INFO if os.environ.get("RUNMODE") == "prodution" else logging.DEBUG
LOGLEVEL = logging.INFO if os.environ.get("RUNMODE") == "production" else logging.DEBUG
logging.basicConfig(format=FMT, level=LOGLEVEL)
app.config.from_object(Config)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment