@@ -404,11 +404,9 @@ defmodule Logger.Translator do
404
404
end
405
405
406
406
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 )
412
410
413
411
dictionary = crashed [ :dictionary ]
414
412
reason = Exception . normalize ( kind , reason , stack )
@@ -459,6 +457,10 @@ defmodule Logger.Translator do
459
457
[ prefix , "Ancestors: " , inspect ( ancestors ) | crash_info ( min_level , debug , prefix ) ]
460
458
end
461
459
460
+ defp crash_info ( min_level , [ { :process_label , _ } | info ] , prefix ) do
461
+ crash_info ( min_level , info , prefix )
462
+ end
463
+
462
464
defp crash_info ( :debug , debug , prefix ) do
463
465
for { key , value } <- debug do
464
466
crash_debug ( key , value , prefix )
0 commit comments