From 402b045bde6e890a9a25f04ffd1dcc45887269cc Mon Sep 17 00:00:00 2001 From: gzbender Date: Tue, 13 Aug 2019 17:51:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=B5=20=D0=BE=D1=82=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D1=8F=D0=B5=D1=82=D1=81=D1=8F=20=D1=81=D1=82=D0=B0?= =?UTF-8?q?=D1=82=D0=B8=D1=81=D1=82=D0=B8=D0=BA=D0=B0=20roistat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/settings.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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/