From 12f580451d0206cb31f118ab8b37d79a6bcb3fde Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Thu, 18 Feb 2021 06:59:15 +0100 Subject: [PATCH 1/2] whitespace --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a6ce0f78..beda7562 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ exclude_lines = [ "pragma: no cover", "if TYPE_CHECKING:", "raise NotImplementedError", - # typing-related code + # typing-related code "^if (False|TYPE_CHECKING):", ": \\.\\.\\.$", "^ +\\.\\.\\.$", From bca6527fadc61bc9586d21b316e6d29217d341fd Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Thu, 18 Feb 2021 07:02:00 +0100 Subject: [PATCH 2/2] Fix example It doesn't need wrap_dict anymore. ref https://github.com/hynek/structlog/issues/294#issuecomment-781073763 --- docs/code_examples/flask_/webapp.py | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/code_examples/flask_/webapp.py b/docs/code_examples/flask_/webapp.py index e08e063d..3940e9bd 100644 --- a/docs/code_examples/flask_/webapp.py +++ b/docs/code_examples/flask_/webapp.py @@ -46,7 +46,6 @@ def some_route(): key_order=["event", "view", "peer"] ), ], - context_class=structlog.threadlocal.wrap_dict(dict), logger_factory=structlog.stdlib.LoggerFactory(), ) app.run()