summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2011-07-22 16:20:13 +0200
committerfranck cuny <franck@lumberjaph.net>2011-07-26 13:21:02 +0200
commitda02ed3a8179e3c8545c6fa7b86dc9a63c6008cf (patch)
tree750656c2c31f95e89a919e69cb094bdfc95d1374
parentfix wrong test (diff)
downloadnet-http-spore-da02ed3a8179e3c8545c6fa7b86dc9a63c6008cf.tar.gz
update debug
Signed-off-by: franck cuny <franck@lumberjaph.net>
-rw-r--r--lib/Net/HTTP/Spore/Role/Debug.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Net/HTTP/Spore/Role/Debug.pm b/lib/Net/HTTP/Spore/Role/Debug.pm
index 18f3412..5aeba83 100644
--- a/lib/Net/HTTP/Spore/Role/Debug.pm
+++ b/lib/Net/HTTP/Spore/Role/Debug.pm
@@ -19,7 +19,7 @@ sub BUILD {
     my ($self, $args) = @_;
     my $trace;
 
-    $trace = $args->{trace} && $args->{trace} > 0 ? $args->{trace} : undef;
+    $trace = $args->{trace} if $args->{trace};
     $trace = $ENV{SPORE_TRACE} if defined $ENV{SPORE_TRACE};
 
     if (!defined $trace){