Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

feat: add extra={'stack': True} support for logbook handler - #1228

Open
shidenggui wants to merge 1 commit into
getsentry:masterfrom
shidenggui:master
Open

feat: add extra={'stack': True} support for logbook handler#1228
shidenggui wants to merge 1 commit into
getsentry:masterfrom
shidenggui:master

Conversation

@shidenggui

Copy link
Copy Markdown

In logging handler, we can use extra={'stack': True} argument on log method to capture a stack trace, but that argument misses in logbook handler.

# If you don't have an exception, but still want to capture a
# stacktrace, use the `stack` arg
logger.error('There was an error, with a stacktrace!', extra={
    'stack': True,
})

注册 for free to subscribe to this conversation on GitHub. Already have an account? 登录.

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

1 participant