From: adam Date: Fri, 2 Mar 2007 17:23:59 +0000 (+0000) Subject: Added some debug logging - From Dave Rolksy X-Git-Tag: 0.67_01~46 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=51cc8fe9230a36356a847ee2e443f47f3e390873;hp=fe6e22b4be69f3ab0c057ae460ed6a2c72086df5;p=catagits%2FCatalyst-Action-REST.git Added some debug logging - From Dave Rolksy --- diff --git a/lib/Catalyst/Action/Serialize.pm b/lib/Catalyst/Action/Serialize.pm index 10cf82e..0ccc077 100644 --- a/lib/Catalyst/Action/Serialize.pm +++ b/lib/Catalyst/Action/Serialize.pm @@ -25,7 +25,11 @@ sub execute { return 1 if $c->response->status =~ /^(?:204|3\d\d)$/; my ($sclass, $sarg, $content_type) = $self->_load_content_plugins("Catalyst::Action::Serialize", $controller, $c); - return 1 unless defined $sclass; + unless ( defined($sclass) ) { + $c->log->debug("Could not find a serializer for $content_type"); + return 1; + } + $c->log->debug("Serializing with $sclass" . ($sarg ? " [$sarg]" : '')); my $rc; if ( defined($sarg) ) {