stip package name from sub
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 17 Aug 2009 00:52:51 +0000 (00:52 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 17 Aug 2009 00:52:51 +0000 (00:52 +0000)
lib/PXElator/CouchDB.pm

index 2453eba..53a12de 100644 (file)
@@ -125,6 +125,7 @@ sub audit {
        ( $package, undef, $line ) = caller(0) if ! $package || $package eq 'main';
 
        my $time = time();
+       $sub =~ s{^.+::}{}; # stip package name
 
        $data->{$_} = eval '$' . $_ foreach ( qw/time package line sub/ );