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>.
- task_revoked's signum is now an integer instead of an object. See [#323](https://github.com/jrobichaud/django-structlog/issues/323) <https://github.com/jrobichaud/django-structlog/issues/323>.
- task_not_found's message was removed and replaced by task_id and task. See [#323](https://github.com/jrobichaud/django-structlog/issues/323) <https://github.com/jrobichaud/django-structlog/issues/323>.
- task_rejected's message was removed and replaced by task_id. See [#323](https://github.com/jrobichaud/django-structlog/issues/323) <https://github.com/jrobichaud/django-structlog/issues/323>_.
- Switched from git's master to main branch
Other:
- Add new :ref:how_tos section in the documentation.
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 6.0.1.
Changelog
Sourced from django-structlog's changelog.
Commits
13e5d90
Bump version1313bc6
Freeze django-ipware for now1d48e18
Bump release version6975357
Merge pull request #335 from jrobichaud/how-tos7659ed1
Add how tos section4c54d4a
Bump ruff in pre-commit98ca64e
Merge pull request #331 from jrobichaud/dependabot/pip/requirements/django-ip...2634d61
Merge pull request #334 from jrobichaud/dependabot/pip/requirements/coverage-...08e2c6f
Merge pull request #332 from jrobichaud/dependabot/pip/requirements/ruff-0.0.292eeebaed
Bump django-ipware from 5.0.0 to 5.0.1 in /requirementsDependabot 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