Ensure all creations of directories create the parents too (#5711)

This commit is contained in:
Trenton H
2024-02-10 11:02:40 -08:00
committed by GitHub
parent 633ec9de86
commit 1d3f525f92
11 changed files with 22 additions and 38 deletions

View File

@@ -689,7 +689,7 @@ USE_TZ = True
setup_logging_queues()
os.makedirs(LOGGING_DIR, exist_ok=True)
LOGGING_DIR.mkdir(parents=True, exist_ok=True)
LOGROTATE_MAX_SIZE = os.getenv("PAPERLESS_LOGROTATE_MAX_SIZE", 1024 * 1024)
LOGROTATE_MAX_BACKUPS = os.getenv("PAPERLESS_LOGROTATE_MAX_BACKUPS", 20)