From 311dab37971a4e3f10d91963ade594e0830467e4 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Fri, 23 Jun 2023 18:57:30 +0200 Subject: [PATCH] logging test --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 006de32..bc4a24d 100644 --- a/main.py +++ b/main.py @@ -21,6 +21,7 @@ socketio = SocketIO(app) logging.basicConfig(filename='matekasse.log', encoding='utf-8', level=logging.INFO) db_log = logging.getLogger('db') db_consol_handler = logging.StreamHandler() +db_consol_handler.setLevel(logging.INFO) db_consol_handler.setFormatter(logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')) db_log.addHandler(db_consol_handler) website_log = logging.getLogger('website')