[open-ils-commits] r12374 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger/Reactor (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Mar 3 09:30:48 EST 2009
Author: erickson
Date: 2009-03-03 09:30:47 -0500 (Tue, 03 Mar 2009)
New Revision: 12374
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger/Reactor/SendEmail.pm
Log:
when email sending fails, it's usually a template problem. Log the template (sans newlines)
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger/Reactor/SendEmail.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger/Reactor/SendEmail.pm 2009-03-03 05:29:43 UTC (rev 12373)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger/Reactor/SendEmail.pm 2009-03-03 14:30:47 UTC (rev 12374)
@@ -59,6 +59,8 @@
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;
}
More information about the open-ils-commits
mailing list