Verbosity of gen_server crash reports

Ulf Wiger <>
Tue Jun 18 10:00:35 CEST 2002


On Mon, 17 Jun 2002, Shawn Pearce wrote:

>Is there some way to set the depth of the crash report's term
>display so I can minimize the amount of data I must weed
>through?

Shawn,

Your best bet might be to replace error_logger_tty_h.erl with one
that you've hacked in order to recognize the reports that you
want to prune (e.g. truncating the binaries). You can replace
error_logger_tty_h in service by using

  gen_event:swap_handler(error_logger, error_logger_tty_h,
                         shawns_error_handler).

Another option is to hack gen_server:error_info/5. Unfortunately,
it cannot be parameterized in the current implementation.
Basically, you'd be defining your own behaviour...   /:

/Uffe
-- 
Ulf Wiger, Senior Specialist,
   / / /   Architecture & Design of Carrier-Class Software
  / / /    Strategic Product & System Management
 / / /     Ericsson Telecom AB, ATM Multiservice Networks




More information about the erlang-questions mailing list