-
Notifications
You must be signed in to change notification settings - Fork 6
Version 0.3 breaks with django (structlog is configured in its settings.py file). #12
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
Comments
I'm having the same error using this config: structlog.configure(
processors=[
structlog.stdlib.filter_by_level,
structlog.processors.TimeStamper(fmt="iso"),
structlog.stdlib.add_logger_name,
structlog.stdlib.add_log_level,
structlog.stdlib.PositionalArgumentsFormatter(),
structlog.processors.TimeStamper(fmt="iso"),
structlog.processors.StackInfoRenderer(),
structlog.processors.format_exc_info,
structlog.processors.UnicodeDecoder(),
structlog.processors.ExceptionPrettyPrinter(),
structlog.dev.ConsoleRenderer(),
],
context_class=structlog.threadlocal.wrap_dict(dict),
logger_factory=structlog.stdlib.LoggerFactory(),
wrapper_class=structlog.stdlib.BoundLogger,
cache_logger_on_first_use=True,
) |
I realised that it only happened to me when I was running all tests but not when running one specific test, so looking around I found this hynek/structlog#76 (comment), which right away fixed my issue. Hope it helps. |
Happy to report that it seems to have fixed the issue for us. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version 0.3 breaks our tests. We use django and configure structlog in our settings.py file.
When we run the tests we now get this error:
Originally posted by @skoot in #10 (comment)
The text was updated successfully, but these errors were encountered: