Make logging configurable
This commit is contained in:
parent
658fbdf83c
commit
1e034f1a7f
5
app.py
5
app.py
|
@ -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__)
|
||||
|
||||
|
|
Loading…
Reference in New Issue