You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to come up if there's a legitimate reason to add backwards-compatible change (i.e. support both, and translate the one to the other), or are the existing "use-cases" so thoroughly broken, that it just doesn't make any sense whatsoever?
edit removed a trace that I completely misread while being high on PyCon fumes please disregard
I do not think the backwards-compatible change should be supported no, given one case will cause an error (ie using stackLevel) and the other case (using stacklevel) needs to be interpreted correctly and passed to stdlib
Maybe there is an argument for passing both the argument to stdlib kwargs and in extra? Could turn the processor into a class so that could be parameterised, and the old one can be supported by render_to_log_kwargs = RenderToLogKwargs(pass_to_extra=True) - but I don't think it's worth adding the complexity to cover what I imagine is a vanishingly small use case
render_to_log_kwargs reserves
stackLevel
when it should bestacklevel
python stdlib kwargs https://github.com/python/cpython/blob/main/Lib/logging/__init__.py#L1632
related
#537
#424
The text was updated successfully, but these errors were encountered: