Django-structlog

Latest version: v8.1.0

Safety actively analyzes 666166 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 10

5.3.0

---------------------

*New:*
- django setting ``DJANGO_STRUCTLOG_CELERY_ENABLED = True`` replacing :class:`django_structlog.middlewares.CeleryMiddleware`. See :ref:`upgrade_6.0` and `265 <https://github.com/jrobichaud/django-structlog/pull/265>`_. Also introduce new internal `app_settings` that may come handy for future configurations.


*Deprecations:*
- :class:`django_structlog.middlewares.CeleryMiddleware` (see above).

5.2.0

---------------------

*New:*
- Add new event ``task_started``. See `260 <https://github.com/jrobichaud/django-structlog/issues/260>`_. Special thanks to `adrenaline681 <https://github.com/adrenaline681>`_.

5.1.0

----------------------

*New:*
- Add new signal :class:`django_structlog.signals.update_failure_response` allowing to modify the response in case of failure. See `231 <https://github.com/jrobichaud/django-structlog/issues/231>`_. Special thanks to `HMaker <https://github.com/HMaker>`_.

5.0.2

----------------------

See: :ref:`upgrade_5.0`

*Fixes:*
- Fix regression in 5.0.0 and 5.0.1 where exceptions were not logged as ``error`` but as ``info``. See `226 <https://github.com/jrobichaud/django-structlog/issues/226>`_. Special thanks to `ntap-fge <https://github.com/ntap-fge>`_.

*Rollbacks from 5.0.0:*
- Rollback removal of ``django_structlog.signals.bind_extra_request_failed_metadata``. Relates the above fix.

5.0.1

----------------------

See: :ref:`upgrade_5.0`

*Changes:*
- minimum requirements change for ``asgiref`` to 3.6.0. See `209 <https://github.com/jrobichaud/django-structlog/pull/209>`_. Special thanks to `adinsoon <https://github.com/adinsoon>`_.

5.0.0

----------------------

See: :ref:`upgrade_5.0`

*Changes:*
- ``RequestMiddleware`` and ``CeleryMiddleware`` now properly support async views

*Removed:*
- *(Rolled back in 5.0.2)* ``django_structlog.signals.bind_extra_request_failed_metadata``

*Deprecates:*
- :class:`django_structlog.middlewares.request_middleware_router`
- :class:`django_structlog.middlewares.requests.AsyncRequestMiddleware`
- :class:`django_structlog.middlewares.requests.SyncRequestMiddleware`

Page 2 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.