-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
render_to_log_kwargs does not handle all kwargs #424
Comments
+1, I also hit the exact same issue. I'm trying to use the |
Hm this never popped up, because you'd usually format exceptions using format_exc_info before handing them off to standard library. I guess we could sieve out keywords that must not be passed on, are there more than exc_info? |
Yeah, adding I don't think sieving out is correct, we need to pass actual arguments. Three of them: "exc_info", "stack_info", "stackLevel". |
Hi, i want to use standard logging for formatting, to use formatting from https://github.com/elastic/ecs-logging-python
But, following configuration:
Causes errors when using structlog in the following way:
This is because not all kwargs to logging should go to extra.
I fixed this by rewriting
render_to_log_kwargs
in the following way:But i think this should be merged upstream. I can make PR if you want, or you can add those changes yourself.
The text was updated successfully, but these errors were encountered: