--- lib/PXElator/httpd.pm 2009/08/12 22:56:45 207 +++ lib/PXElator/httpd.pm 2009/08/12 23:59:01 208 @@ -63,7 +63,6 @@ # parent close($client); $static_pids->{$pid} = $path; - CouchDB::audit('static', 'parent', { pid => $pid, path => $path }); return 1; } @@ -82,7 +81,7 @@ my $buff; my $pos = 0; - CouchDB::audit( 'static', 'child', { pid => $$, path => $path, type => $type, size => $size, block => $block }); + CouchDB::audit( 'static', { pid => $$, path => $path, type => $type, size => $size, block => $block, peerhost => $client->peerhost }); progress_bar::start; @@ -97,8 +96,6 @@ print STDERR "\n"; - CouchDB::audit( 'static', 'child', 'exit', { pid => $$ } ); - exit(0); } @@ -117,7 +114,7 @@ server->refresh; - CouchDB::audit( 'request', { path => $path, param => $param } ); + CouchDB::audit( 'request', { path => $path, param => $param, peerhost => $client->peerhost } ); if ( my $found = static( $client,$path ) ) { warn "static $found" if $debug;