Do logging output if there are no logging filters and add a note of explanation the first time @param filters The configured filters @param ex The exception saying what broke
(List<AjaxFilter> filters, Throwable ex)
| 570 | * @param ex The exception saying what broke |
| 571 | */ |
| 572 | private void debugException(List<AjaxFilter> filters, Throwable ex) |
| 573 | { |
| 574 | if (debug && !filtersIncludeLogging(filters)) |
| 575 | { |
| 576 | if (!givenAuditLogHint) |
| 577 | { |
| 578 | log.debug("No logging filters defined. Minimal execption logging. For more detail add <filter class='org.directwebremoting.filter.AuditLogAjaxFilter'/> to dwr.xml"); |
| 579 | givenAuditLogHint = true; |
| 580 | } |
| 581 | log.debug("Method execution failed: ", ex); |
| 582 | } |
| 583 | } |
| 584 | |
| 585 | /** |
| 586 | * A quick check to see if we are already doing some form of logging |
no test coverage detected