This repository was archived by the owner on Dec 5, 2025. It is now read-only.
Update dependency python_json_logger to v3#836
Merged
SamuelHassine merged 1 commit intomasterfrom Apr 12, 2025
Merged
Conversation
5609788 to
0ca1d2c
Compare
0ca1d2c to
57309e0
Compare
c59af8c to
1543d9d
Compare
1543d9d to
e9df73b
Compare
aHenryJard
pushed a commit
to OpenCTI-Platform/opencti
that referenced
this pull request
Nov 12, 2025
…ython#836) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> (original commit: OpenCTI-Platform/client-python@6705eef)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
~=2.0.4->~=3.3.0Release Notes
nhairs/python-json-logger (python_json_logger)
v3.3.0: 3.3.0Compare Source
Added
exc_info_as_arrayandstack_info_as_arrayoptions are added topythonjsonlogger.core.BaseJsonFormatterallowing both to be encoded as list of lines instead of a single multi-line string. #35Security
msgspec-python313-prefromdevdependencies preventing potential RCE. Details: GHSA-wmxh-pxcx-9w24Thanks @1hakusai1 and @omnigodz
v3.2.1: 3.2.1Compare Source
Fixed
import pythonjsonlogger.jsonlogger#29v3.2.0: 3.2.0Compare Source
Changed
pythonjsonlogger.[ORJSON,MSGSPEC]_AVAILABLEno longer imports the respective package when determining availability.pythonjsonlogger.[orjson,msgspec]now throws apythonjsonlogger.exception.MissingPackageErrorwhen required libraries are not available. These contain more information about what is missing whilst still being anImportError.defaultsparameter is no longer ignored and now conforms to the standard library. Setting a defaults dictionary will add the specified keys if the those keys do not exist in a record or weren't passed by theextraparameter when logging a message.typing_extensionsis only installed on Python version < 3.10.msgspechas only been tested against pre-release versions.Thanks @cjwatson and @bharel
v3.1.0Compare Source
This splits common funcitonality out to allow supporting other JSON encoders. Although this is a large refactor, backwards compatibility has been maintained.
Added
pythonjsonlogger.core- more details below.pythonjsonlogger.defaultsmodule that provides many functions for handling unsupported types.pythonjsonlogger.orjson.OrjsonFormatterwith the following additions:"ValueError: bad value passed"__str__if available, else__repr__if available, else will use__could_not_encode__pythonjsonlogger.msgspec.MsgspecFormatterwith the following additions:"ValueError: bad value passed"__str__if available, else__repr__if available, else will use__could_not_encode__intorstrjcrist/msgspec#680Changed
pythonjsonlogger.jsonloggerhas been moved topythonjsonlogger.jsonwith core functionality moved topythonjsonlogger.core.pythonjsonlogger.core.BaseJsonFormatterproperly supports alllogging.Formatterarguments:fmtis unchanged.datefmtis unchanged.stylecan now support non-standard arguments by settingvalidatetoFalsevalidateallows non-standardstylearguments or prevents callingvalidateon standardstylearguments.defaultis ignored.pythonjsonlogger.json.JsonFormatterdefault encodings changed:BaseExceptioninstead ofException. Now "pretty prints" the exception using the exception name and message e.g."ValueError: bad value passed"__str__if available, else__repr__if available, else will use__could_not_encode__mkdocsis stored indocs/README.mdhas been moved todocs/index.mdanddocs/qucikstart.md.CHANGELOG.mdhas been moved todocs/change-log.mdSECURITY.mdhas been moved and replaced with a symbolic link todocs/security.md.Deprecated
pythonjsonlogger.jsonloggeris nowpythonjsonlogger.jsonpythonjsonlogger.jsonlogger.RESERVED_ATTRSis nowpythonjsonlogger.core.RESERVED_ATTRS.pythonjsonlogger.jsonlogger.merge_record_extrais nowpythonjsonlogger.core.merge_record_extra.Removed
pythonjsonlogger.jsonlogger.JsonFormatter._str_to_fnreplaced withpythonjsonlogger.core.str_to_object.v3.0.1Compare Source
Fixes
json_serialiser->json_serializer(#8) - @juliangilbeyv3.0.0Compare Source
Note: using new major version to separate changes from this fork and the original (upstream). See #1 for details.
Changes
RESERVED_ATTRSis now a list and version dependentJsonFormatter.__init__return type (None) - @nhairspyproject.toml- @nhairsNew Contributors
Full Changelog: nhairs/python-json-logger@v2.0.7...v3.0.0
Configuration
📅 Schedule: Branch creation - "after 10pm every weekday,every weekend,before 5am every weekday" in timezone Europe/Paris, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.