Development #6922
Change default logging configuration
100%
Description
We only configure the root logger and 'django.db'. If DEBUG is True we see the root logger to DEBUG. We do not use Django default logging configuration by bypassing it using LOGGING_CONFIG = None
[1]. Add a new filter to provide, usename, ip and a request ID to the formatter. Add a new setting DEBUG_DB for activating logging of SQL queries.
Fichiers
Révisions associées
Set a request id on all requests (#6922)
The request id is extracted from an header set using the
REQUEST_ID_HEADER setting or generated using the default Python random
number generator.
Change default logging configuration (fixes #6922)
We only configure the root logger and 'django.db'. If DEBUG is True we
see the root logger to DEBUG. We do not use Django default logging
configuration by bypassing it using LOGGING_CONFIG = None1.
- django_select2 logger is set to warning as the INFO level emit
uninteresting messages - django.db logger is set to INFO, to prevent getting SQL queries when
DEBUG is True. To get the SQL queries set DEBUG_DB to True in your
settings. - Set a default logging configuration for the multitenant packaging
- Add a RequestContextFilter logging filterto provide, usename, ip
and a request ID to the formatter. - Use the new filter in default, debian and debian-multitenant settings.
- Add a new setting DEBUG_DB for activating logging of SQL queries.
Add a XForwardedForMiddleware middleware (#6922)
It allows authentic to automatically get the real ip when behind
Gunicorn+nginx.
Set a request id on all requests (#6922)
The request id is extracted from an header set using the
REQUEST_ID_HEADER setting or generated using the default Python random
number generator.
Change default logging configuration (fixes #6922)
We only configure the root logger and 'django.db'. If DEBUG is True we
see the root logger to DEBUG. We do not use Django default logging
configuration by bypassing it using LOGGING_CONFIG = None1.
- django_select2 logger is set to warning as the INFO level emit
uninteresting messages - django.db logger is set to INFO, to prevent getting SQL queries when
DEBUG is True. To get the SQL queries set DEBUG_DB to True in your
settings. - Set a default logging configuration for the multitenant packaging
- Add a RequestContextFilter logging filterto provide, usename, ip
and a request ID to the formatter. - Use the new filter in default, debian and debian-multitenant settings.
- Add a new setting DEBUG_DB for activating logging of SQL queries.
Historique
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
This patch set will also add a new middleware only used by the debian package, to get the real ip from the X-Forwarded-For header as gunicorn has deprecated this behaviour in gunicorn 18.
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Fichier 0001-Add-a-XForwardedForMiddleware-middleware-6922.patch 0001-Add-a-XForwardedForMiddleware-middleware-6922.patch ajouté
- Fichier 0002-Set-a-request-id-on-all-requests-6922.patch 0002-Set-a-request-id-on-all-requests-6922.patch ajouté
- Fichier 0003-Change-default-logging-configuration-fixes-6922.patch ajouté
- Patch proposed changé de Non à Oui
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Fichier
0003-Change-default-logging-configuration-fixes-6922.patchsupprimé
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Fichier 0003-Change-default-logging-configuration-fixes-6922.patch 0003-Change-default-logging-configuration-fixes-6922.patch ajouté
Update to patch 3.
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Statut changé de Nouveau à Résolu (à déployer)
- % réalisé changé de 0 à 100
Appliqué par commit cae8db3fc1e3c6e5d7bd271862f9f8ee50ec3b4b.
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Assigné à mis à Benjamin Dauvergne
- Version cible mis à 2.2.0
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
Appliqué par commit c8e10def0696546f361dfd1a8cdcc051273b55bf.
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Statut changé de Résolu (à déployer) à Fermé
Add a XForwardedForMiddleware middleware (#6922)
It allows authentic to automatically get the real ip when behind
Gunicorn+nginx.