M_McDonald
15 years agoSuper Contributor
[SOLVED]Exceptions in project events not reported in error log tab
It seems that exceptions that occur in (at least some) project events are not captured in the error log tab. I noticed this in the RequestFilter.afterRequest event.
To reproduce, put the following code in the event:
then create a Request step (I used an HTTP Request) and run the step. The log.info appears in the script log tab, but nothing in the error log. If you put the same code in a Groovy script step and run the test case the exception will appear in the error log.
Using build daily-2010-03-10-[1], Build Date 2010/03/10 06:24.
To reproduce, put the following code in the event:
log.info "about to throw exception"
throw new Exception("where do I go?")
then create a Request step (I used an HTTP Request) and run the step. The log.info appears in the script log tab, but nothing in the error log. If you put the same code in a Groovy script step and run the test case the exception will appear in the error log.
Using build daily-2010-03-10-[1], Build Date 2010/03/10 06:24.