We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14a1636 commit f23783aCopy full SHA for f23783a
ecs_logging/_stdlib.py
@@ -103,9 +103,14 @@ def __init__(
103
if validate is not None:
104
# validate was introduced in py3.8 so we need to only provide it if the user provided it
105
_kwargs["validate"] = validate
106
- super(StdlibFormatter, self).__init__( # type: ignore[call-arg]
107
- fmt=fmt, datefmt=datefmt, style=style, **_kwargs
108
- )
+ if sys.version_info < (3, 0): # Different args in py2.7
+ super(StdlibFormatter, self).__init__( # type: ignore[call-arg]
+ fmt=fmt, datefmt=datefmt
109
+ )
110
+ else:
111
112
+ fmt=fmt, datefmt=datefmt, style=style, **_kwargs
113
114
115
if stack_trace_limit is not None:
116
if not isinstance(stack_trace_limit, int):
0 commit comments