burning
burning

Reputation: 21

why Erlang's Reason of termination is normal?

all

the part of log :

** Reason for termination == ** 
{normal,
{gen_server,call,
       [<0.9723.458>,
        {create_jtxn_mon,
            {player,34125,0,"gulexi",

why does it report error log when the reason is normal? thanks for your help~~~

Upvotes: 2

Views: 713

Answers (1)

legoscia
legoscia

Reputation: 41568

It seems like you made a call to a gen_server that exited with reason normal before it sent a response to the caller.

In general, if a gen_server exits with reason ServerExitReason during a call, gen_server:call will exit with the exit reason {ServerExitReason, {gen_server, call, [...]}}, even if ServerExitReason is normal. (See the source)

That is, the exit reason is not normal but {normal, ...}, and that's why you get a log message.

Upvotes: 2

Related Questions