[erlang-patches] format_status analog for error_info

Andrew Thompson <>
Thu Feb 25 17:31:55 CET 2010


On Thu, Feb 25, 2010 at 05:16:38PM +0100, Bj??rn Gustavsson wrote:
> On Thu, Feb 25, 2010 at 4:56 PM, Andrew Thompson <> wrote:
> >
> > Hah! gen_event actually uses the result of terminate() to start the new
> > handler - I'd forgotten that. That makes things a lot more complicated.
> 
> So perhaps it would be better to use Steve's approach?
> 
> Other than that, I personally don't have any opinion yet on which
> approach is the better one.
>

I'm inclined to agree - except that gen_event doesn't support the
callback module having a format_status callback, at least not yet.

In theory sys:get_status on a gen_event could call Mod:format_status for
all its handlers with their respective states on their respective
modules.

Andrew


More information about the erlang-patches mailing list