[Rt-commit] r8328 - rt/branches/3.7-EXPERIMENTAL-TUNIS/lib
ruz at bestpractical.com
ruz at bestpractical.com
Mon Jul 30 20:11:08 EDT 2007
Author: ruz
Date: Mon Jul 30 20:11:07 2007
New Revision: 8328
Modified:
rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT.pm.in
Log:
* require Devel::StackTraces only when we need it,
to avoid penalties on common users
Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT.pm.in
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT.pm.in (original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT.pm.in Mon Jul 30 20:11:07 2007
@@ -236,7 +236,7 @@
my %p = @_;
return $p{'message'} unless $level_to_num{ $p{'level'} } >= $stack_from_level;
- use Devel::StackTrace;
+ require Devel::StackTrace;
my $trace = Devel::StackTrace->new( ignore_class => [ 'Log::Dispatch', 'Log::Dispatch::Base' ] );
return $p{'message'} . $trace->as_string;
More information about the Rt-commit
mailing list