8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65890e1 commit 27dece4Copy full SHA for 27dece4
sentry_sdk/integrations/logging.py
@@ -137,8 +137,7 @@ def _emit(self, record):
137
return
138
139
hub = Hub.current
140
- integration = hub.get_integration(LoggingIntegration)
141
- if integration is None:
+ if hub.client is None:
142
143
144
# exc_info might be None or (None, None, None)
@@ -185,9 +184,6 @@ def _emit(self, record):
185
184
if not _can_record(record):
186
187
188
- hub = Hub.current
189
190
191
- return
192
-
193
- hub.add_breadcrumb(_breadcrumb_from_record(record), hint={"log_record": record})
+ Hub.current.add_breadcrumb(
+ _breadcrumb_from_record(record), hint={"log_record": record}
+ )
0 commit comments