From fa2b75da48a0ea1a1c6f3668cfd8484ceaa3e72c Mon Sep 17 00:00:00 2001 From: Rolf Aas <rolf.aas@ibooking.no> Date: Mon, 19 Apr 2021 17:07:00 +0200 Subject: [PATCH] Removed comment --- backend/secfit/secfit/djangoHeroku.py | 37 +-------------------------- 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/backend/secfit/secfit/djangoHeroku.py b/backend/secfit/secfit/djangoHeroku.py index c095f6a..bd7427d 100644 --- a/backend/secfit/secfit/djangoHeroku.py +++ b/backend/secfit/secfit/djangoHeroku.py @@ -69,42 +69,7 @@ def settings(config, *, db_colors=False, databases=True, test_runner=True, stati if allowed_hosts: config['ALLOWED_HOSTS'] = ['*'] - """ - if logging: - logger.info('Applying Heroku logging configuration to Django settings.') - config['LOGGING'] = { - 'version': 1, - 'disable_existing_loggers': False, - 'formatters': { - 'verbose': { - 'format': ('%(asctime)s [%(process)d] [%(levelname)s] ' + - 'pathname=%(pathname)s lineno=%(lineno)s ' + - 'funcname=%(funcName)s %(message)s'), - 'datefmt': '%Y-%m-%d %H:%M:%S' - }, - 'simple': { - 'format': '%(levelname)s %(message)s' - } - }, - 'handlers': { - 'null': { - 'level': 'DEBUG', - 'class': 'logging.NullHandler', - }, - 'console': { - 'level': 'DEBUG', - 'class': 'logging.StreamHandler', - 'formatter': 'verbose' - } - }, - 'loggers': { - 'testlogger': { - 'handlers': ['console'], - 'level': 'INFO', - } - } - } - """ + # SECRET_KEY configuration. if secret_key and 'SECRET_KEY' in os.environ: # Set the Django setting from the environment variable. -- GitLab