From: Arthur Axel 'fREW' Schmidt Date: Fri, 11 Jan 2013 16:24:08 +0000 (-0600) Subject: fix SYNOPSIS bug (thanks Mithaldu) X-Git-Tag: v0.005000_01~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2ae9c1212f6db9be3a043a83b7d1f3be1108f449;p=p5sagit%2FLog-Contextual.git fix SYNOPSIS bug (thanks Mithaldu) --- diff --git a/lib/Log/Contextual.pm b/lib/Log/Contextual.pm index e5ea999..b33097d 100644 --- a/lib/Log/Contextual.pm +++ b/lib/Log/Contextual.pm @@ -179,9 +179,11 @@ Log::Contextual - Simple logging interface with a contextual log levels => [qw( trace debug )] }); + my @args = @_; + with_logger $minilogger => sub { log_trace { 'foo entered' }; - my ($foo, $bar) = Dlog_trace { "params for foo: $_" } @_; + my ($foo, $bar) = Dlog_trace { "params for foo: $_" } @args; # ... log_trace { 'foo left' }; };