[Templates] Apache::Template logging blank reasons

[prev] [thread] [next] [Date index for 2005/05/26]

From: Garrett, Philip (MAN-Corporate)
Subject: [Templates] Apache::Template logging blank reasons
Date: 22:16 on 26 May 2005
Apache::Template (0.09) is sending blank failure reasons to my error_log.
The problem only rears its head when the TT2Error config isn't set.

It looks like it was perhaps just a typo in Template::Service::Apache.  The
following patch fixes the problem for me.  The original code didn't work
because a false value was just assigned to $template in the preceding "if"
clause.

Regards,
Philip Garrett

--- Apache-Template-0.09/lib/Template/Service/Apache.pm 2004-04-27
10:11:31.000000000 +0100
+++ Apache-Template-new/lib/Template/Service/Apache.pm  2005-05-26
22:56:20.636115000 +0100
@@ -87,7 +87,7 @@
             }
         }
         else {
-            $r->log_reason($template, $filename);
+            $r->log_reason($self->{ TEMPLATE_ERROR }, $filename);
             return SERVER_ERROR;
         }
     }

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] Apache::Template logging blank reasons
Garrett, Philip (MAN-Corporate) 22:16 on 26 May 2005

Generated at 20:13 on 05 Jun 2005 by mariachi v0.52