Skip to content

Commit 4dcd538

Browse files
authored
fixed code snippet (#4218)
1 parent ee97003 commit 4dcd538

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
This is how you can use it (Sentry Logs is in beta right now so the API can still change):
1414

1515
```python
16+
import logging
17+
1618
import sentry_sdk
1719
from sentry_sdk.integrations.logging import LoggingIntegration
1820

@@ -23,12 +25,11 @@
2325
"enable_sentry_logs": True
2426
}
2527
integrations=[
26-
LoggingIntegration(sentry_logs_level="error"),
28+
LoggingIntegration(sentry_logs_level=logging.ERROR),
2729
]
2830
)
2931

3032
# Your existing logging setup
31-
import logging
3233
some_logger = logging.Logger("some-logger")
3334

3435
some_logger.info('In this example info events will not be sent to Sentry logs. my_value=%s', my_value)

0 commit comments

Comments
 (0)