You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by GitBox <gi...@apache.org> on 2022/12/07 07:30:23 UTC

[GitHub] [uima-uimaj] reckart opened a new issue, #268: UIMA components log and then re-throw exceptions which usually leads to errors being logged twice

reckart opened a new issue, #268:
URL: https://github.com/apache/uima-uimaj/issues/268

   **Describe the bug**
   UIMA components log and then re-throw exceptions which usually leads to errors being logged twice:
   * first time by the UIMA component wrapper
   * then by the code that runs the component/pipeline
   
   In particular in unit tests that intentionally trigger exceptions this is highly annoying as these exceptions logged on the error level are spamming the output and distract developers from other relevant exceptions.
   
   **To Reproduce**
   * Build a component that throws an exception e.g. in the `process` method
   * Run that and catch exceptions and log them.
   
   **Expected behavior**
   At least this should be optional behavior used for cases where the runner code does not handle exceptions. However, to be honest, I believe if the runner code does not log exceptions produced by the components, then that is a problem in the runner code and not a thing the components should be concerned with.
   
   **Please complete the following information:**
    - Version: 3.3.1
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@uima.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [uima-uimaj] reckart closed issue #268: UIMA components log and then re-throw exceptions which usually leads to errors being logged twice

Posted by GitBox <gi...@apache.org>.
reckart closed issue #268: UIMA components log and then re-throw exceptions which usually leads to errors being logged twice
URL: https://github.com/apache/uima-uimaj/issues/268


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@uima.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org