diff options
author | Erlang/OTP <[email protected]> | 2010-05-21 07:32:18 +0000 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2010-05-21 07:32:18 +0000 |
commit | 56664e5bcde1a3147814bedfa94767c9465c90e3 (patch) | |
tree | fa76f08e8a106bdf00a97e359c1d46064f1bb2bb /lib/stdlib/test/dummy1_h.erl | |
parent | 641a0c6bbcff9b573d2f2ebadc13443be522cf35 (diff) | |
parent | 6281020ef3ac85afbfbe811de662ae5e1f19901d (diff) | |
download | otp-56664e5bcde1a3147814bedfa94767c9465c90e3.tar.gz otp-56664e5bcde1a3147814bedfa94767c9465c90e3.tar.bz2 otp-56664e5bcde1a3147814bedfa94767c9465c90e3.zip |
Merge branch 'sv/format_status_error_info' into dev
* sv/format_status_error_info:
Add support for the format_status callback to gen_event
Extend format_status for gen_server/gen_fsm termination error logging
OTP-8630 sv/format_status_error_info
When a gen_server, gen_fsm process, or gen_event terminates abnormally,
sometimes the text representation of the process state can occupy many
lines of the error log, depending on the definition of the state term. A
mechanism to trim out parts of the state from the log has been added (using
a format_status/2 callback). See the documentation.
Diffstat (limited to 'lib/stdlib/test/dummy1_h.erl')
-rw-r--r-- | lib/stdlib/test/dummy1_h.erl | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/stdlib/test/dummy1_h.erl b/lib/stdlib/test/dummy1_h.erl index 4377d774a3..5b503d5984 100644 --- a/lib/stdlib/test/dummy1_h.erl +++ b/lib/stdlib/test/dummy1_h.erl @@ -1,19 +1,19 @@ %% %% %CopyrightBegin% -%% -%% Copyright Ericsson AB 1996-2009. All Rights Reserved. -%% +%% +%% Copyright Ericsson AB 1996-2010. All Rights Reserved. +%% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Public License along with this software. If not, it can be %% retrieved online at http://www.erlang.org/. -%% +%% %% Software distributed under the License is distributed on an "AS IS" %% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See %% the License for the specific language governing rights and limitations %% under the License. -%% +%% %% %CopyrightEnd% %% -module(dummy1_h). @@ -21,7 +21,7 @@ %% Test event handler for gen_event_SUITE.erl -export([init/1, handle_event/2, handle_call/2, handle_info/2, - terminate/2]). + terminate/2, format_status/2]). init(make_error) -> {error, my_error}; @@ -67,4 +67,5 @@ terminate(remove_handler, Parent) -> terminate(_Reason, _State) -> ok. - +format_status(_Opt, [_PDict, _State]) -> + "dummy1_h handler state". |