New:
- (celery) add priority (if available) and routing_key to task_enqueued. See [#345](https://github.com/jrobichaud/django-structlog/issues/345) <https://github.com/jrobichaud/django-structlog/pull/345>_ and [#341](https://github.com/jrobichaud/django-structlog/issues/341) <https://github.com/jrobichaud/django-structlog/issues/341>. Special thanks to badziyoussef <https://github.com/badziyoussef>.
- Django 5.0 support. See [#350](https://github.com/jrobichaud/django-structlog/issues/350) <https://github.com/jrobichaud/django-structlog/pull/350>. Take note async view cancellation when using asgi does not work yet, see [#351](https://github.com/jrobichaud/django-structlog/issues/351) <https://github.com/jrobichaud/django-structlog/issues/351>.
- Add streaming response support (for both sync and async) and Django 5's async cancellation. See [#353](https://github.com/jrobichaud/django-structlog/issues/353) <https://github.com/jrobichaud/django-structlog/pull/353>_ and :ref:streaming_response_events.
Changes:
- Supports django-ipware 6+ only. See [#403](https://github.com/jrobichaud/django-structlog/issues/403) <https://github.com/jrobichaud/django-structlog/pull/403>. Special thanks to the maintainer @un33k <https://github.com/un33k>.
- Drop support of django 4.0. See [#338](https://github.com/jrobichaud/django-structlog/issues/338) <https://github.com/jrobichaud/django-structlog/pull/338>. Special thanks to @jairhenrique <https://github.com/jairhenrique>.
Other:
- Improved demo project
- Better UI
- Easy switch between runserver_plus, wsgi an asgi
- Front-end request feedbacks using toasts
6.0.1 (November 29, 2023)
Fixes:
- freeze django-ipware<6 for now due to breaking changes. See [#388](https://github.com/jrobichaud/django-structlog/issues/388) <https://github.com/jrobichaud/django-structlog/issues/388>_
6.0 (October 3, 2023)
See: :ref:upgrade_6.0
New:
- Python 3.12 support
- Add support of logging :ref:commands
- task_revoked has now a signame metadata. See [#323](https://github.com/jrobichaud/django-structlog/issues/323) <https://github.com/jrobichaud/django-structlog/issues/323>.
- task_not_found has now a task_id and a task metadata. See [#323](https://github.com/jrobichaud/django-structlog/issues/323) <https://github.com/jrobichaud/django-structlog/issues/323>.
Fixes:
- Add missing metadata when a task is revoked. See [#317](https://github.com/jrobichaud/django-structlog/issues/317) <https://github.com/jrobichaud/django-structlog/issues/317>. Special thanks to @badziyoussef <https://github.com/badziyoussef>.
Changes:
- Drop support of python 3.7
- Drop legacy code still supporting celery < 4
- Removal of deprecated:
- :class:django_structlog.middlewares.CeleryMiddleware
- :class:django_structlog.middlewares.SyncRequestMiddleware
- :class:django_structlog.middlewares.AsyncRequestMiddleware
- :class:django_structlog.middlewares.request_middleware_router
- 4XX status codes now log by default as WARNING and 5XX as ERROR. The behaviour of 4XX can be customized with :ref:configuration. See [#308](https://github.com/jrobichaud/django-structlog/issues/308) <https://github.com/jrobichaud/django-structlog/issues/308>. Special thanks to @adinhodovic <https://github.com/adinhodovic>.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps django-structlog from 5.3.0 to 7.0.0.
Changelog
Sourced from django-structlog's changelog.
... (truncated)
Commits
3054b64
Bump version5ea14da
Merge pull request #403 from jrobichaud/unfreeze-ipware4e857f8
Bump version and update documentatione7cb635
Use official django 5.0397b51a
django-structlog now supports only django-ipware 6+95b06f5
Merge pull request #396 from jrobichaud/dependabot/pip/requirements/django-ip...bc3fea4
Merge pull request #389 from jrobichaud/django-ipware548d446e
Merge pull request #393 from jrobichaud/dependabot/pip/docs/importlib-metadat...0a2998e
Merge commit '4ff9cd2be4519bb1e413e28f817c34b2cb57e958' into django-ipware54ff9cd2
Merge pull request #394 from jrobichaud/dependabot/pip/docs/sphinx-rtd-theme-...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show