Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions loggia/stdlib_formatters/json_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
from typing import TYPE_CHECKING, Any, Final, Protocol, runtime_checkable
from uuid import UUID

from pythonjsonlogger.jsonlogger import RESERVED_ATTRS, JsonEncoder, JsonFormatter
from pythonjsonlogger.core import RESERVED_ATTRS
from pythonjsonlogger.json import JsonEncoder, JsonFormatter

from loggia._internal.bootstrap_logger import bootstrap_logger
from loggia._internal.conf import is_truthy_string
Expand Down Expand Up @@ -61,7 +62,7 @@ class CustomJsonFormatter(JsonFormatter):
RESERVED_ATTRS = RESERVED_ATTRS

def __init__(self, *args: Any, **kwargs: Any):
super().__init__(*args, **kwargs) # type: ignore[no-untyped-call]
super().__init__(*args, **kwargs)
if DD_TRACE_ENABLED and tracer is not None:
self.process_ddtrace = _process_ddtrace
else:
Expand Down
15 changes: 9 additions & 6 deletions pdm.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [
{ name = "Jonathan Gallon", email = "jonathan.gallon@manomano.com" },
]
dependencies = [
"python-json-logger>=2.0.7",
"python-json-logger>=3.1.0",
"typing-extensions>=4.7.1 ; python_version < '3.10'",
]
requires-python = ">=3.9"
Expand Down