Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add logging configuration for the docker setup
Roland Geider472de72e660a
diff --git a/extras/docker/production/settings.py b/extras/docker/production/settings.pyindex 3490c3930..4ea61bc50 100644--- a/extras/docker/production/settings.py+++ b/extras/docker/production/settings.py@@ -188,3 +188,31 @@ CELERY_RESULT_BACKEND = env.str("CELERY_BACKEND", "redis://cache:6379/2")#EXPOSE_PROMETHEUS_METRICS = env.bool('EXPOSE_PROMETHEUS_METRICS', False)PROMETHEUS_URL_PATH = env.str('PROMETHEUS_URL_PATH', 'super-secret-path')++#+# Logging+#+LOGGING = {+ 'version': 1,+ 'disable_existing_loggers': False,+ 'formatters': {+ 'simple': {+ 'format': 'level={levelname} ts={asctime} module={module} path={pathname} line={lineno} message={message}',+ 'style': '{',+ },+ },+ 'handlers': {+ 'console': {+ 'level': 'DEBUG',+ 'class': 'logging.StreamHandler',+ 'formatter': 'simple'+ },+ },+ 'loggers': {+ '': {+ 'handlers': ['console'],+ 'level': env.str('LOG_LEVEL_PYTHON', 'INFO').upper(),+ 'propagate': True,+ },+ }+}diff --git a/wger/urls.py b/wger/urls.pyindex 424d62ec9..b0e3808b2 100644--- a/wger/urls.py+++ b/wger/urls.py@@ -353,5 +353,5 @@ if settings.DEBUG:if settings.EXPOSE_PROMETHEUS_METRICS:urlpatterns += [- path(f'prometheus/{settings.PROMETHEUS_URL_PATH}/', include('django_prometheus.urls'))+ path(f'prometheus/', include('django_prometheus.urls'))]