Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve DeprecationWarning #200

Merged
merged 1 commit into from
Dec 17, 2024
Merged

Conversation

samuelhwilliams
Copy link
Contributor

@samuelhwilliams samuelhwilliams commented Dec 17, 2024

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

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
@samuelhwilliams samuelhwilliams merged commit 3d02bfe into main Dec 17, 2024
8 checks passed
@samuelhwilliams samuelhwilliams deleted the bau/fix-deprecation-warnings branch December 17, 2024 13:34
samuelhwilliams added a commit that referenced this pull request Dec 23, 2024
This was added in
#200
but appears to be from a version of python-json-logger we aren't using
yet - so was premature.
samuelhwilliams added a commit that referenced this pull request Dec 23, 2024
This was added in
#200
but appears to be from a version of python-json-logger we aren't using
yet - so was premature.
samuelhwilliams added a commit that referenced this pull request Dec 23, 2024
This was added in
#200
but appears to be from a version of python-json-logger we aren't using
yet - so was premature.
samuelhwilliams added a commit that referenced this pull request Dec 23, 2024
Depending on what version of python-json-logger is installed, the
JsonFormatter is in a different module.

This change fixes the broken PR
#200
which didn't account for apps still using python-json-logger v2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants