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

Ulf Wiger ulf@REDACTED
Fri Oct 3 11:00:28 CEST 2008


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
>



More information about the erlang-questions mailing list