From 06392c7600b0d6248e6e6864c00c5ea57e62b679 Mon Sep 17 00:00:00 2001 From: juanifioren Date: Mon, 15 Jun 2015 17:23:47 -0300 Subject: [PATCH] Clean logging on test settings. --- oidc_provider/tests/test_settings.py | 34 +--------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/oidc_provider/tests/test_settings.py b/oidc_provider/tests/test_settings.py index 0e158e1..122eb0c 100644 --- a/oidc_provider/tests/test_settings.py +++ b/oidc_provider/tests/test_settings.py @@ -18,49 +18,17 @@ MIDDLEWARE_CLASSES = ( 'django.contrib.auth.middleware.AuthenticationMiddleware', ) - LOGGING = { 'version': 1, 'disable_existing_loggers': False, - - 'formatters': { - 'simple': { - 'format': '%(asctime)s %(process)d [%(levelname)s] %(name)s Line: %(lineno)s id: %(process)d : %(message)s' - } - }, - - 'filters': { - 'require_debug_false': { - '()': 'django.utils.log.RequireDebugFalse', - } - }, 'handlers': { 'console': { 'class': 'logging.StreamHandler', - 'filters': ['require_debug_false'], - 'formatter': 'simple', }, - 'mail_admins': { - 'level': 'ERROR', - 'filters': ['require_debug_false'], - 'class': 'django.utils.log.AdminEmailHandler', - 'formatter': 'simple', - }, - "debug_file_handler": { - "class": "logging.handlers.RotatingFileHandler", - "level": "DEBUG", - "formatter": "simple", - 'filename': 'debug.log', - 'formatter': 'simple', - "maxBytes": 10485760, - "backupCount": 20, - "encoding": "utf8" - } }, - 'loggers': { 'oidc_provider': { - 'handlers': ['console', 'debug_file_handler'], + 'handlers': ['console'], 'level': os.getenv('DJANGO_LOG_LEVEL', 'DEBUG'), }, },