[Jifty-commit] jifty branch, master, updated. 1.10518-97-g4b4102a

Jifty commits jifty-commit at lists.jifty.org
Fri May 25 16:15:08 EDT 2012


The branch, master has been updated
       via  4b4102a49ee9090377ee384488010d7e7a1e5b5a (commit)
      from  33fd500dddd5906a0a98b62cf9e5d8d3275b5241 (commit)

Summary of changes:
 lib/Jifty/Web.pm |    3 +++
 1 file changed, 3 insertions(+)

- Log -----------------------------------------------------------------
commit 4b4102a49ee9090377ee384488010d7e7a1e5b5a
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Fri May 25 16:14:38 2012 -0400

    Actually log something to the debug log when the dispatcher requests a
    template that doesn't exist

diff --git a/lib/Jifty/Web.pm b/lib/Jifty/Web.pm
index 3b6f971..d01af94 100644
--- a/lib/Jifty/Web.pm
+++ b/lib/Jifty/Web.pm
@@ -986,6 +986,8 @@ sub render_template {
     my $content;
         my $void_context = ( defined wantarray ? 0 :1);
 
+    my $requested_template = $template;
+
     # Check for ../../../../../etc/passwd
     my $abs_template_path = Jifty::Util->absolute_path( Jifty->config->framework('Web')->{'TemplateRoot'} . $template );
     my $abs_root_path = Jifty::Util->absolute_path( Jifty->config->framework('Web')->{'TemplateRoot'} );
@@ -1008,6 +1010,7 @@ sub render_template {
 
     # Handle 404's
     unless ($handler) {
+        Jifty->log->debug("Template '$requested_template' couldn't be found");
         return $self->render_template("/errors/404") unless defined $template and $template eq "/errors/404";
         $self->log->warn("Can't find 404 page!");
         die "ABORT";

-----------------------------------------------------------------------


More information about the Jifty-commit mailing list