@@ -404,11 +404,9 @@ defmodule Logger.Translator do
404404 end
405405
406406 defp report_crash ( min_level , crashed , extra , linked ) do
407- [
408- { :pid , pid } ,
409- { :registered_name , name } ,
410- { :error_info , { kind , reason , stack } } | crashed
411- ] = crashed
407+ { pid , crashed } = Keyword . pop_first ( crashed , :pid )
408+ { name , crashed } = Keyword . pop_first ( crashed , :registered_name )
409+ { { kind , reason , stack } , crashed } = Keyword . pop_first ( crashed , :error_info )
412410
413411 dictionary = crashed [ :dictionary ]
414412 reason = Exception . normalize ( kind , reason , stack )
@@ -459,6 +457,10 @@ defmodule Logger.Translator do
459457 [ prefix , "Ancestors: " , inspect ( ancestors ) | crash_info ( min_level , debug , prefix ) ]
460458 end
461459
460+ defp crash_info ( min_level , [ { :process_label , _ } | info ] , prefix ) do
461+ crash_info ( min_level , info , prefix )
462+ end
463+
462464 defp crash_info ( :debug , debug , prefix ) do
463465 for { key , value } <- debug do
464466 crash_debug ( key , value , prefix )
0 commit comments