/[pxelator]/lib/PXElator/CouchDB.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/CouchDB.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 357 by dpavlin, Wed Aug 26 15:59:19 2009 UTC revision 358 by dpavlin, Sun Aug 30 10:29:40 2009 UTC
# Line 122  sub audit { Line 122  sub audit {
122          $url =~ s/\s+-\S+//g;   # remove command line options          $url =~ s/\s+-\S+//g;   # remove command line options
123          $url =~ s/\W+/-/g;          $url =~ s/\W+/-/g;
124    
125          my $time = $data->{time} = time();          my $time = time();
126    
         my @caller_name = ( qw/package file line sub/ );  
127          my @caller = caller(0);          my @caller = caller(0);
128          $caller[3] = (caller(1))[3];          $caller[3] = (caller(1))[3];
129          $caller[3] =~ s{^.+::}{}; # stip package name from sub          $caller[3] =~ s{^.+::}{}; # stip package name from sub
130          $data->{ $caller_name[$_] } = $caller[$_] foreach ( 0 .. $#caller_name );          $data->{package} = {
131                    time => $time,
132                    name => $caller[0],
133                    line => $caller[2],
134                    caller  => $caller[3],
135            };
136    
137          if ( $ENV{DEBUG} ) {          if ( $ENV{DEBUG} ) {
138    

Legend:
Removed from v.357  
changed lines
  Added in v.358

  ViewVC Help
Powered by ViewVC 1.1.26