Fix: Log-Verzeichnis mit parents=True erstellen, um FileNotFoundError zu vermeiden
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@ def main():
|
|||||||
from conf import config_path
|
from conf import config_path
|
||||||
|
|
||||||
log_dir = config_path.parent / "logs"
|
log_dir = config_path.parent / "logs"
|
||||||
log_dir.mkdir(exist_ok=True)
|
log_dir.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
# Alte Log-Dateien aufräumen
|
# Alte Log-Dateien aufräumen
|
||||||
cleanup_old_logs(log_dir, max_age_hours=24)
|
cleanup_old_logs(log_dir, max_age_hours=24)
|
||||||
|
|||||||
Reference in New Issue
Block a user