Browse Source

ref: upgrade structlog (#43680)

I think this fixes a breakage with xdist:

```console
  File "/home/runner/work/getsentry/getsentry/.venv/lib/python3.8/site-packages/sentry_sdk/integrations/logging.py", line 96, in sentry_patched_callhandlers
    return old_callhandlers(self, record)
  File "/opt/hostedtoolcache/Python/3.8.13/x64/lib/python3.8/logging/__init__.py", line 1661, in callHandlers
    hdlr.handle(record)
  File "/opt/hostedtoolcache/Python/3.8.13/x64/lib/python3.8/logging/__init__.py", line 954, in handle
    self.emit(record)
  File "/home/runner/work/getsentry/sentry/src/sentry/logging/handlers.py", line 92, in emit
    logger.log(**self.get_log_kwargs(record=record, logger=logger))
  File "/home/runner/work/getsentry/getsentry/.venv/lib/python3.8/site-packages/structlog/_config.py", line 396, in __getattr__
    return getattr(bl, name)
AttributeError: 'BoundLoggerFilteringAtNotset' object has no attribute 'log'
```




<!-- Describe your PR here. -->
anthony sottile 2 years ago
parent
commit
93be0c7da1
3 changed files with 3 additions and 3 deletions
  1. 1 1
      requirements-base.txt
  2. 1 1
      requirements-dev-frozen.txt
  3. 1 1
      requirements-frozen.txt

+ 1 - 1
requirements-base.txt

@@ -60,7 +60,7 @@ sentry-sdk>=1.14.0
 snuba-sdk>=1.0.3
 simplejson>=3.17.6
 statsd>=3.3
-structlog>=21.1.0
+structlog>=22
 symbolic>=10.2.0
 toronado>=0.1.0
 typing-extensions>=3.10.0.2

+ 1 - 1
requirements-dev-frozen.txt

@@ -166,7 +166,7 @@ soupsieve==2.3.2.post1
 sqlparse==0.3.0
 statsd==3.3
 stripe==2.61.0
-structlog==21.1.0
+structlog==22.1.0
 symbolic==10.2.0
 tokenize-rt==5.0.0
 toml==0.10.2

+ 1 - 1
requirements-frozen.txt

@@ -119,7 +119,7 @@ soupsieve==2.3.2.post1
 sqlparse==0.3.0
 statsd==3.3
 stripe==2.61.0
-structlog==21.1.0
+structlog==22.1.0
 symbolic==10.2.0
 toronado==0.1.0
 trio==0.21.0