From 1e034f1a7f19668b0bd6fa960543ba93abf8b0d5 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sun, 11 Dec 2022 22:57:41 +0100 Subject: [PATCH] Make logging configurable --- app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 3e23cd2..1cc655f 100644 --- a/app.py +++ b/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__)