You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by al...@apache.org on 2007/03/02 22:57:48 UTC

svn commit: r513977 - /incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/analysis_engine/asb/impl/ASB_impl.java

Author: alally
Date: Fri Mar  2 13:57:47 2007
New Revision: 513977

URL: http://svn.apache.org/viewvc?view=rev&rev=513977
Log:
Added log message for when processing continues after error.
UIMA-327: https://issues.apache.org/jira/browse/UIMA-327

Modified:
    incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/analysis_engine/asb/impl/ASB_impl.java

Modified: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/analysis_engine/asb/impl/ASB_impl.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/analysis_engine/asb/impl/ASB_impl.java?view=diff&rev=513977&r1=513976&r2=513977
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/analysis_engine/asb/impl/ASB_impl.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/analysis_engine/asb/impl/ASB_impl.java Fri Mar  2 13:57:47 2007
@@ -504,6 +504,10 @@
               //and ask the Flow Controller if we should continue routing the CAS that was input to the CasMultiplier.
               if (!frame.originalCasFlow.continueOnFailure(frame.casMultiplierAeKey, e)) {
                 throw e;              
+              } else {
+                UIMAFramework.getLogger(CLASS_NAME).logrb(Level.FINE, CLASS_NAME.getName(), "processUntilNextOutputCas",
+                        LOG_RESOURCE_BUNDLE, "UIMA_continuing_after_exception__FINE", e);
+               
               }
               //if the Flow says to continue, we fall through to the if (cas == null) block below, get
               //the originalCas from the stack and continue with its flow.
@@ -548,8 +552,13 @@
                 catch(Exception e) {
                   //ask the FlowController if we should continue
                   //TODO: should this be configurable?
-                  if (!flow.continueOnFailure(nextAeKey, e))
+                  if (!flow.continueOnFailure(nextAeKey, e)) {
                     throw e;
+                  }
+                  else {
+                    UIMAFramework.getLogger(CLASS_NAME).logrb(Level.FINE, CLASS_NAME.getName(), "processUntilNextOutputCas",
+                            LOG_RESOURCE_BUNDLE, "UIMA_continuing_after_exception__FINE", e);
+                  }
                 }
                 if (outputCas != null) // new CASes are output
                 {
@@ -595,8 +604,13 @@
                   catch(Exception e) {
                     //ask the FlowController if we should continue
                     //TODO: should this be configurable?
-                    if (!flow.continueOnFailure(nextAeKey, e))
+                    if (!flow.continueOnFailure(nextAeKey, e)) {
                       throw e;
+                    }
+                    else {
+                      UIMAFramework.getLogger(CLASS_NAME).logrb(Level.FINE, CLASS_NAME.getName(), "processUntilNextOutputCas",
+                              LOG_RESOURCE_BUNDLE, "UIMA_continuing_after_exception__FINE", e);
+                    }
                   }
                   if (outputCas != null) // new CASes are output
                   {