Skip to content

Commit 934b15c

Browse files
authored
fix(python) Use exception instead of error (#1558)
* fix(python) Use exception instead of error Fixes getsentry/sentry#17751
1 parent 3211366 commit 934b15c

File tree

1 file changed

+1
-1
lines changed
  • src/collections/_documentation/platforms/python

1 file changed

+1
-1
lines changed

src/collections/_documentation/platforms/python/logging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import logging
2828
logging.debug("I am ignored")
2929
logging.info("I am a breadcrumb")
3030
logging.error("I am an event", extra=dict(bar=43))
31-
logging.error("An exception happened", exc_info=True)
31+
logging.exception("An exception happened")
3232
```
3333

3434
* There will be an error event with the message `"I am an event"`.

0 commit comments

Comments
 (0)