when email sending fails, it's usually a template problem. Log the template (sans...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 3 Mar 2009 14:30:47 +0000 (14:30 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 3 Mar 2009 14:30:47 +0000 (14:30 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12374 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Trigger/Reactor/SendEmail.pm

index a724f20..c2cf802 100644 (file)
@@ -59,6 +59,8 @@ sub handler {
         return 1;
     } else {
         $logger->warn("SendEmail Reactor: unable to send email: ".Dumper($stat));
+        $text =~ s/\n//og;
+        $logger->warn("SendEmail Reactor: failed email template: $text");
         return 0;
     }