@@ -341,18 +341,11 @@ defmodule Sentry.LoggerHandler do
341
341
# "report" here is of type logger:report/0, which is a map or keyword list.
342
342
defp log_unfiltered ( % { msg: { :report , report } } , sentry_opts , % __MODULE__ { } = config ) do
343
343
case Map . new ( report ) do
344
- % { report: % { reason: { exception , stacktrace } } }
344
+ % { reason: { exception , stacktrace } }
345
345
when is_exception ( exception ) and is_list ( stacktrace ) ->
346
346
sentry_opts = Keyword . merge ( sentry_opts , stacktrace: stacktrace , handled: false )
347
347
capture ( :exception , exception , sentry_opts , config )
348
348
349
- % { report: % { reason: { reason , stacktrace } } } when is_list ( stacktrace ) ->
350
- sentry_opts = Keyword . put ( sentry_opts , :stacktrace , stacktrace )
351
- capture ( :message , "** (stop) " <> Exception . format_exit ( reason ) , sentry_opts , config )
352
-
353
- % { report: report_info } ->
354
- capture ( :message , inspect ( report_info ) , sentry_opts , config )
355
-
356
349
% { reason: { reason , stacktrace } } when is_list ( stacktrace ) ->
357
350
sentry_opts = Keyword . put ( sentry_opts , :stacktrace , stacktrace )
358
351
capture ( :message , "** (stop) " <> Exception . format_exit ( reason ) , sentry_opts , config )
@@ -363,8 +356,8 @@ defmodule Sentry.LoggerHandler do
363
356
364
357
capture ( :message , "** (stop) #{ Exception . format_exit ( reason ) } " , sentry_opts , config )
365
358
366
- _other ->
367
- :ok
359
+ _ ->
360
+ capture ( :message , inspect ( report ) , sentry_opts , config )
368
361
end
369
362
end
370
363
0 commit comments