[erlang-questions] Prevent my crashing gen_server to produce any error message

Frank Muller frank.muller.erl@REDACTED
Wed Sep 12 06:08:13 CEST 2018


Still seeing some supervisor crash report:

(fah@REDACTED)1> =SUPERVISOR REPORT==== 12-Sep-2018::05:58:53.171292 ===
   supervisor: {local,fah_sup}
   errorContext: child_terminated
   reason: {{badmatch,{<<"945a9769-070b-4635-b0f5-84c2105228f">>,76,45}},
            [{fah,checkid,1,[{file,"src/fah.erl"},{line,210}]},
             [...]
             {proc_lib,init_p_do_apply,3,
                       [{file,"proc_lib.erl"},{line,249}]}]}
   offender: [{pid,<0.141.0>},
              {id,fah},
              {mfargs,{fah,start_link,[2,#Port<0.9>]}},
              {restart_type,transient},
              {shutdown,5000},
              {child_type,worker}]

I even tried to combine your and Siri’s filter, but no luck.

/Frank

Can you please explain us the PID idea inside the metadata as I’m not
>> familiar with the new logger module?
>>
>> Thanks
>> /Frank
>>
>
> Maybe this:
>
> logger:add_primary_filter(my_filter_id,{fun(#{meta:=#{label:={proc_lib,crash}}})
> -> stop; (_,_) -> ignore end,ok}).
>
> ?
>
> ---
> Led
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180912/ca7cf3dd/attachment.htm>


More information about the erlang-questions mailing list