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():