File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ package WebGUI::Session::Log;
18
18
use strict;
19
19
use WebGUI::Paths;
20
20
use WebGUI::Exception;
21
- use Sub::Uplevel;
22
21
use Scalar::Util qw( weaken blessed) ;
23
22
24
23
=head1 NAME
@@ -148,7 +147,8 @@ sub fatal {
148
147
my $self = shift ;
149
148
my $message = shift ;
150
149
my $error_obj = shift ;
151
- Sub::Uplevel::uplevel( 1, $self -> getLogger, { level => ' fatal' , message => $message });
150
+ local $Log::Log4perl::caller_depth = $Log::Log4perl::caller_depth + 1;
151
+ $self -> getLogger-> ( { level => ' fatal' , message => $message } );
152
152
if ( blessed $error_obj and $error_obj -> can(' rethrow' ) ) {
153
153
# Exception::Class objects have valuable stack traces built in to them; rethrow the existing error to preserve that if possible
154
154
$error_obj -> rethrow;
You can’t perform that action at this time.
0 commit comments