@@ -341,18 +341,11 @@ defmodule Sentry.LoggerHandler do
341341 # "report" here is of type logger:report/0, which is a map or keyword list.
342342 defp log_unfiltered ( % { msg: { :report , report } } , sentry_opts , % __MODULE__ { } = config ) do
343343 case Map . new ( report ) do
344- % { report: % { reason: { exception , stacktrace } } }
344+ % { reason: { exception , stacktrace } }
345345 when is_exception ( exception ) and is_list ( stacktrace ) ->
346346 sentry_opts = Keyword . merge ( sentry_opts , stacktrace: stacktrace , handled: false )
347347 capture ( :exception , exception , sentry_opts , config )
348348
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-
356349 % { reason: { reason , stacktrace } } when is_list ( stacktrace ) ->
357350 sentry_opts = Keyword . put ( sentry_opts , :stacktrace , stacktrace )
358351 capture ( :message , "** (stop) " <> Exception . format_exit ( reason ) , sentry_opts , config )
@@ -363,8 +356,8 @@ defmodule Sentry.LoggerHandler do
363356
364357 capture ( :message , "** (stop) #{ Exception . format_exit ( reason ) } " , sentry_opts , config )
365358
366- _other ->
367- :ok
359+ _ ->
360+ capture ( :message , inspect ( report ) , sentry_opts , config )
368361 end
369362 end
370363
0 commit comments