hush responses from Gearman without DEBUG=1
authorDobrica Pavlinusic <dpavlin@rsync1.maxxo.com>
Fri, 20 Jan 2012 18:45:19 +0000 (19:45 +0100)
committerDobrica Pavlinusic <dpavlin@rsync1.maxxo.com>
Fri, 20 Jan 2012 18:45:19 +0000 (19:45 +0100)
lib/CloudStore/Gearman.pm

index 9b74a55..6059caa 100644 (file)
@@ -19,7 +19,7 @@ sub gearman_do {
        warn "## gearman_do $func [$body]\n";
 
        my $result = $self->gearman->do_task( $func => $body );
-       warn "##>> ",dump($result),$/;
+       warn "##>> ",dump($result),$/ if $ENV{DEBUG};
        return $$result;
 }