feat(market-intel): complete end-to-end audit with enhanced UX and grounding
- Integrated ICP-based lookalike sourcing. - Implemented Deep Tech Audit with automated evidence collection. - Enhanced processing terminal with real-time logs. - Refined daily logging and resolved all dependency issues. - Documented final status and next steps.
This commit is contained in:
@@ -10,12 +10,18 @@ import re # Für Regex-Operationen
|
||||
|
||||
# --- AUTARKES LOGGING SETUP --- #
|
||||
def create_self_contained_log_filename(mode):
|
||||
log_dir_path = "/app/Log"
|
||||
"""
|
||||
Erstellt einen zeitgestempelten Logdateinamen für den Orchestrator.
|
||||
Verwendet ein festes Log-Verzeichnis innerhalb des Docker-Containers.
|
||||
NEU: Nur eine Datei pro Tag, um Log-Spam zu verhindern.
|
||||
"""
|
||||
log_dir_path = "/app/Log" # Festes Verzeichnis im Container
|
||||
if not os.path.exists(log_dir_path):
|
||||
os.makedirs(log_dir_path, exist_ok=True)
|
||||
now = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
|
||||
version_str = "orchestrator_v2"
|
||||
filename = f"{now}_{version_str}_Modus-{mode}.log"
|
||||
|
||||
# Nur Datum verwenden, nicht Uhrzeit, damit alle Runs des Tages in einer Datei landen
|
||||
date_str = datetime.now().strftime("%Y-%m-%d")
|
||||
filename = f"{date_str}_market_intel.log"
|
||||
return os.path.join(log_dir_path, filename)
|
||||
|
||||
log_filename = create_self_contained_log_filename("market_intel_orchestrator")
|
||||
|
||||
Reference in New Issue
Block a user