Skip to content

Commit

Permalink
Revert pythonjsonlogger import change
Browse files Browse the repository at this point in the history
This was added in
#200
but appears to be from a version of python-json-logger we aren't using
yet - so was premature.
  • Loading branch information
samuelhwilliams committed Dec 23, 2024
1 parent 753dc9f commit f9e0f6a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 6.0.1

* Revert: "Fix a DeprecationWarning from pythonjsonlogger" which actually broke things

### 6.0.0

* Removes `locale_selector` module, which has now been lifted directly into `pre-award-frontend` (and modified to support `host_matching` mode).
Expand Down
6 changes: 5 additions & 1 deletion fsd_utils/logging/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@

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

try:
from pythonjsonlogger.json import JsonFormatter as BaseJSONFormatter
except ImportError:
from pythonjsonlogger.jsonlogger 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 = "6.0.0"
version = "6.0.1"

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

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

0 comments on commit f9e0f6a

Please sign in to comment.