【发布时间】:2016-05-17 08:28:23
【问题描述】:
当在调用堆栈的根部捕获引发的异常时,我可以在 Sentry 中的每个调用堆栈级别看到整个上下文。
但是,当我使用 captureMessage() 时,我在 Sentry 中看不到任何上下文。
如果我在下面的代码中使用 captureException(),我只能看到调用堆栈的顶部。
try:
raise Exception('Breakpoint!')
except:
raven_client.captureException()
换句话说,我想在 Sentry 中看到带有完整堆栈跟踪和上下文的记录消息。
【问题讨论】:
标签: python logging sentry raven