move more output to debug
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 31 Jul 2009 14:43:30 +0000 (14:43 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 31 Jul 2009 14:43:30 +0000 (14:43 +0000)
lib/PXElator/httpd.pm

index 23192b1..2affd63 100644 (file)
@@ -147,7 +147,7 @@ sub get_request {
 
                my $debug_proc;
 
-               warn 'pids: ', dump( $pids );
+               warn 'pids: ', dump( $pids ) if $debug;
                foreach my $name ( keys %$pids ) {
                        my $pid = $pids->{$name} || next;
 
@@ -167,7 +167,7 @@ sub get_request {
                        push @rows, ( $name => $html );
                }
 
-               warn 'static_pids: ', dump( $static_pids );
+               warn 'static_pids: ', dump( $static_pids ) if $debug;
                foreach my $pid ( keys %$static_pids ) {
                        my $path = $static_pids->{$pid};
                        if ( -d "/proc/$pid" ) {