[erlang-questions] Can I suppress the error-report when stopping a gen_server?

Jeroen Koops koops.j@REDACTED
Fri Oct 3 11:07:31 CEST 2008


Great, thanks.

On Fri, Oct 3, 2008 at 11:00 AM, Ulf Wiger <ulf@REDACTED> wrote:

> Use {stop, normal, State} instead.
>
> BR,
> Ulf W
>
> 2008/10/3 Jeroen Koops <koops.j@REDACTED>:
> > Hi,
> >
> > When a gen_server stops by returning {stop, Reason, State} from
> handle_cast
> > or handle_call, an error report is logged to the shell:
> >
> > =ERROR REPORT==== 3-Oct-2008::10:39:45 ===
> > ** Generic server test_server terminating
> > ** Last message in was {'$gen_cast',stop}
> > ** When Server state == 37
> > ** Reason for termination ==
> > ** "Stop requested"
> > ** exited: "Stop requested" **
> >
> > Is there any way to suppress this?
> >
> > Thanks,
> >
> > Jeroen Koops
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@REDACTED
> > http://www.erlang.org/mailman/listinfo/erlang-questions
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081003/93ee928a/attachment.htm>


More information about the erlang-questions mailing list