From a80b6a5f6d147f139335889d1de1ed752a7dc54c Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Mon, 10 May 2010 16:42:03 -0500 Subject: [PATCH] proper log caller depth with no request --- lib/WebGUI/Session/ErrorHandler.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/WebGUI/Session/ErrorHandler.pm b/lib/WebGUI/Session/ErrorHandler.pm index a124dba13..89c3fc6c1 100644 --- a/lib/WebGUI/Session/ErrorHandler.pm +++ b/lib/WebGUI/Session/ErrorHandler.pm @@ -213,6 +213,7 @@ sub new { $logger = sub { my $args = shift; my $level = $args->{level}; + local $Log::Log4perl::caller_depth = $Log::Log4perl::caller_depth + 1; $log4perl->$level( $args->{message} ); }; }