Skip to content

Commit

Permalink
Resolve DeprecationWarning
Browse files Browse the repository at this point in the history
fsd_utils/logging/__init__.py:2: in <module>
    from . import logging
fsd_utils/logging/logging.py:13: in <module>
    from pythonjsonlogger.jsonlogger import JsonFormatter as
BaseJSONFormatter
.tox/py3.10-flask2.2-sqlalchemy2/lib/python3.10/site-packages/pythonjsonlogger/jsonlogger.py:11:
in <module>
    warnings.warn(
E   DeprecationWarning: pythonjsonlogger.jsonlogger has been moved to
pythonjsonlogger.json

Update version to 5.3.1
  • Loading branch information
samuelhwilliams committed Dec 17, 2024
1 parent 68219f7 commit 75df227
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 5.3.1

* Fix a DeprecationWarning from pythonjsonlogger

### 5.3.0

* Update the Healthcheck to support apps running in `host_matching` mode.
Expand Down
2 changes: 1 addition & 1 deletion fsd_utils/logging/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from flask import Flask, current_app, request
from flask.ctx import has_request_context
from pythonjsonlogger.jsonlogger import JsonFormatter as BaseJSONFormatter
from pythonjsonlogger.json import JsonFormatter as BaseJSONFormatter

# Log formats can use any attributes available in
# https://docs.python.org/3/library/logging.html#logrecord-attributes
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "funding-service-design-utils"

version = "5.3.0"
version = "5.3.1"

authors = [
{ name="MHCLG", email="FundingService@communities.gov.uk" },
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 75df227

Please sign in to comment.