summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2011-07-11 15:34:49 +0200
committerfranck cuny <franck@lumberjaph.net>2011-07-26 13:21:01 +0200
commitf660b08657eab6ce8406689d25f00874c64e6ccf (patch)
tree4b3d56444ff6ecfce5609f4ee9a582f697c6d233
parentenable trace with environment or constructor (diff)
downloadnet-http-spore-f660b08657eab6ce8406689d25f00874c64e6ccf.tar.gz
add debug while loading middlewares
Signed-off-by: franck cuny <franck@lumberjaph.net>
-rw-r--r--lib/Net/HTTP/Spore/Role/Middleware.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Net/HTTP/Spore/Role/Middleware.pm b/lib/Net/HTTP/Spore/Role/Middleware.pm
index d1a97e2..9ff23c0 100644
--- a/lib/Net/HTTP/Spore/Role/Middleware.pm
+++ b/lib/Net/HTTP/Spore/Role/Middleware.pm
@@ -18,6 +18,7 @@ sub _load_middleware {
     Class::MOP::load_class($mw);
 
     my $code = $mw->wrap( $cond, @args );
+    $self->_trace_msg('== enabling middleware %s', $mw);
     $self->_add_middleware($code);
 }