Make logging configurable

This commit is contained in:
Peter J. Holzer 2022-12-11 22:57:41 +01:00
parent 658fbdf83c
commit 1e034f1a7f
1 changed files with 4 additions and 1 deletions

5
app.py
View File

@ -2,13 +2,16 @@ import fcntl
import hmac
import json
import logging
import logging.config
import os
from flask import (Flask, request, jsonify, abort, render_template)
from ltsdb_json import LTS
logging.basicConfig(level=logging.DEBUG)
import config
logging.config.dictConfig(config.logging)
app = Flask(__name__)