[rt-devel] [Tip] generating backtrace in the log

plasma plasmaball at pchome.com.tw
Sun Sep 22 22:21:40 EDT 2002


Hi all,

Recently I'm looking for some errors in RT and find current
information saved in the log is not sufficient.  In __DIE__ handler, I
change the line

  $RT::Logger->error( $_[0] );

into

  use Carp; $RT::Logger->error( Carp::longmess($_[0]) );

and a backtrace will be generated.  Please be noted that the backtrace
is VERY VERY long, so change this line if you really need it.  The
__DIE__ handler could be found in lib/RT.pm and
lib/RT/Scrip_Overlay.pm.


plasma

==========================================================
 PC home ¹q¤l«H½c¡A¥Ó½Ð½Ð¦Ü: http://www.pchome.com.tw
 PC home Online ºô¸ô®a®x¡G·|­û²Ä¤@¡A¥xÆW³Ì¤jªº¤J¤fºô¯¸
==========================================================



More information about the Rt-devel mailing list