diff --git a/backend/secfit/secfit/djangoHeroku.py b/backend/secfit/secfit/djangoHeroku.py index c095f6a15dc5920026fe058d5d8b7728b35cf722..bd7427d13d79b0d901f0a6491ddba50661e05a81 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.