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 6f47100 commit 94c60beCopy full SHA for 94c60be
lib/sentry/logger_backend.ex
@@ -108,11 +108,11 @@ defmodule Sentry.LoggerBackend do
108
] ++ Map.to_list(sentry)
109
110
case meta[:crash_reason] do
111
- {exception, stacktrace} when is_list(stacktrace) ->
+ {%_{__exception__: true} = exception, stacktrace} when is_list(stacktrace) ->
112
Sentry.capture_exception(exception, [stacktrace: stacktrace] ++ opts)
113
114
- reason when is_atom(reason) and not is_nil(reason) ->
115
- Sentry.capture_exception(reason, opts)
+ {other, stacktrace} when is_list(stacktrace) ->
+ Sentry.capture_exception(Sentry.CrashError.exception(other), [stacktrace: stacktrace] ++ opts)
116
117
_ ->
118
if state.capture_log_messages do
0 commit comments