From 441127ae454c5c8285bef08b8b7f5e4fd74c2ab0 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 29 Apr 2018 23:19:12 -0400 Subject: [PATCH] Don't create the media folder in the common app if it doesn't exist. Instead disable logfile creation. Signed-off-by: Roberto Rosario --- mayan/apps/common/apps.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mayan/apps/common/apps.py b/mayan/apps/common/apps.py index 63609473dd..36cc3c9b4b 100644 --- a/mayan/apps/common/apps.py +++ b/mayan/apps/common/apps.py @@ -184,7 +184,9 @@ class CommonApp(MayanAppConfig): handlers = ['console'] else: level = 'ERROR' - handlers = ['console', 'logfile'] + handlers = ['console'] + if os.path.exists(settings.MEDIA_ROOT): + handlers.append('logfile') loggers = {} for project_app in apps.apps.get_app_configs():