diff --git a/project/settings.py b/project/settings.py index 96db35d9..42095f6a 100644 --- a/project/settings.py +++ b/project/settings.py @@ -215,23 +215,13 @@ LOGGING = { 'handlers': ['console', ], }, 'project': { - 'handlers': ['console', 'log_file',], + 'handlers': ['sentry',], 'level': "INFO", }, } } -if os.path.exists(os.path.join(BASE_DIR, 'media/logs')): - LOGGING['handlers']['log_file'] = { - 'level': 'INFO', - 'class': 'logging.handlers.RotatingFileHandler', - 'filename': 'media/logs/main.log', - 'maxBytes': 1024 * 1024 * 15, - 'backupCount': 7, - 'formatter': 'verbose', - } - # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.0/howto/static-files/