diff options
author | Pablo Polvorin <pablo.polvorin@process-one.net> | 2010-03-30 23:39:34 +0400 |
---|---|---|
committer | Pablo Polvorin <pablo.polvorin@process-one.net> | 2010-03-30 23:39:34 +0400 |
commit | 41aa693896851a2a005a2487fca72d4a9e2aed3b (patch) | |
tree | 3ce27612a8b69d71a598387eef53804e7206264b /src/ejabberd_service.erl | |
parent | 44b282474afada72698400cc23fd726b74cfa551 (diff) |
Allow customizing the StateData in p1_fsm before error reporting.
A new callback is introduced on the p1_fsm behaviour:
print_error/1
If the module implements this function, it will be invoked
in case of process crash with the current state data *before*
printing the error in the log. The function must return the
desired State to print.
It is used in ejabberd_c2s to prune the presence sets that
can be large. Instead, the state is changed to include only
the # of elements on each set.
Change inspired in comming changes to gen_server on OTP, and
http://github.com/erlyvideo/erlyvideo/commit/b01d15abc3189226dbf824db19db22da35fa33a0#diff-0
Diffstat (limited to 'src/ejabberd_service.erl')
0 files changed, 0 insertions, 0 deletions