From 4cdcf5effaf6ce3de9718cd0f23399f3c1cf66a9 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Fri, 23 Jun 2023 19:03:39 +0200 Subject: [PATCH] typo --- main.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/main.py b/main.py index 7107d85..55b4430 100644 --- a/main.py +++ b/main.py @@ -18,16 +18,9 @@ Session(app) socketio = SocketIO(app) #logging_config -logging.basicConfig(filename='matekasse.log', encoding='utf-8', level=logging.INFO) +logging.basicConfig(filename='matekasse.log',filemode='w', format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' ,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') -website_consol_handler = logging.StreamHandler() -website_consol_handler.setFormatter(logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')) -website_log.addHandler(website_consol_handler) #var status = True