From e77c931467595cb6e14f6b80a496a95729084967 Mon Sep 17 00:00:00 2001 From: Floke Date: Wed, 2 Jul 2025 05:21:03 +0000 Subject: [PATCH] bugfix --- brancheneinstufung2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/brancheneinstufung2.py b/brancheneinstufung2.py index a4294ff0..42d31cd1 100644 --- a/brancheneinstufung2.py +++ b/brancheneinstufung2.py @@ -28,10 +28,10 @@ from data_processor import DataProcessor # 1. INITIALE KONFIGURATION (wird vor allem anderen ausgeführt) # ============================================================================== -# Logging sofort konfigurieren, damit es für alle importierten Module greift. -LOG_LEVEL = logging.DEBUG if Config.DEBUG else logging.INFO -LOG_FORMAT = '%(asctime)s - %(levelname)-8s - %(name)-25s - %(message)s' -logging.basicConfig(level=LOG_LEVEL, format=LOG_FORMAT, force=True, handlers=[logging.StreamHandler()]) +# Logging sofort über die zentrale Helper-Funktion konfigurieren +# Wichtig: helpers muss vor der Verwendung importiert werden. +from helpers import create_log_filename, initialize_target_schema, alignment_demo, setup_logging +setup_logging(log_level=logging.DEBUG if Config.DEBUG else logging.INFO) # Haupt-Logger für dieses Skript logger = logging.getLogger(__name__)