From 695c88e1591d3455fc68c10c77920d22b4815d40 Mon Sep 17 00:00:00 2001 From: Brain Date: Wed, 26 Jan 2022 23:19:26 +0100 Subject: [PATCH] Prevent duplicate log entries --- app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app.py b/app.py index ff1edd3..3ef2a67 100644 --- a/app.py +++ b/app.py @@ -20,6 +20,7 @@ app = Flask(__name__) loglevel = os.getenv("KI_LOGLEVEL", logging.WARNING) loglevel = int(loglevel) app.logger.setLevel(loglevel) +app.logger.propagate = False # do not forward messages to the root logger logging.basicConfig(level=loglevel, format='[%(asctime)s] %(levelname)s [%(name)s] %(message)s') # configure root logger as fallback set_library_log_detail_level(BASIC)