You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2003/09/02 15:16:38 UTC
cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/task Notifier.java
andreas 2003/09/02 06:16:38
Modified: src/java/org/apache/lenya/cms/task Notifier.java
Log:
catch and log exception
Revision Changes Path
1.4 +7 -2 cocoon-lenya/src/java/org/apache/lenya/cms/task/Notifier.java
Index: Notifier.java
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/task/Notifier.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Notifier.java 29 Aug 2003 11:49:36 -0000 1.3
+++ Notifier.java 2 Sep 2003 13:16:38 -0000 1.4
@@ -140,7 +140,12 @@
throw new ExecutionException(e);
}
log.info(" Executing notification target ...");
- task.execute(taskParameters.get(Task.PARAMETER_SERVLET_CONTEXT));
+ try {
+ task.execute(taskParameters.get(Task.PARAMETER_SERVLET_CONTEXT));
+ }
+ catch (Exception e) {
+ log.error("Error during notification: ", e);
+ }
log.info(" Notification target executed.");
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org