Verified Commit 4a7e0676 authored by Elger Jonker's avatar Elger Jonker

remove double log messages

parent 88f4cefc
Pipeline #36012539 failed with stage
in 16 minutes and 26 seconds
......@@ -318,7 +318,8 @@ def index(request):
'sentry_token': settings.SENTRY_TOKEN,
'country': config.PROJECT_COUNTRY,
'debug': settings.DEBUG,
'language': request.LANGUAGE_CODE
'language': request.LANGUAGE_CODE,
'timestamp': datetime.now(pytz.UTC).isoformat()
})
......
......@@ -371,14 +371,26 @@ LOGGING = {
}
},
'loggers': {
'': {
'handlers': ['console'], # used when there is no log defined or loaded.
'level': os.getenv('DJANGO_LOG_LEVEL', 'DEBUG'),
},
# Used when there is no log defined or loaded. Disabled given we always use __package__ to log.
# Would you enable it, all logging messages will be logged twice.
# '': {
# 'handlers': ['console'],
# 'level': os.getenv('DJANGO_LOG_LEVEL', 'DEBUG'),
# },
# Default Django logging, we expect django to work, and therefore only show INFO messages.
# It can be smart to sometimes want to see what's going on here, but not all the time.
# https://docs.djangoproject.com/en/2.1/topics/logging/#django-s-logging-extensions
'django': {
'handlers': ['console'],
'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),
},
# We expect to be able to debug failmap all of the time.
'failmap': {
'handlers': ['console'],
'level': os.getenv('DJANGO_LOG_LEVEL', 'DEBUG'),
},
},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment