diff options
author | franck cuny <franck@lumberjaph.net> | 2011-07-11 15:34:49 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2011-07-26 13:21:01 +0200 |
commit | f660b08657eab6ce8406689d25f00874c64e6ccf (patch) | |
tree | 4b3d56444ff6ecfce5609f4ee9a582f697c6d233 | |
parent | enable trace with environment or constructor (diff) | |
download | net-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.pm | 1 |
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); } |