()
| 2874 | |
| 2875 | /* |
| 2876 | * Keeping this usage of isDebugEnabled because the extraction of the log data as a string might be slow. TODO: |
| 2877 | * Determine how likely it is that something is going to go wrong that will prevent the logging at INFO further |
| 2878 | * down, and if possible, prevent that situation. The handleRequest and postDecorateResponse methods do not indicate |
| 2879 | * that they throw any checked exceptions, so it would have to be an unchecked exception that causes any problems. |
| 2880 | */ |
| 2881 | if (requestLog.isDebugEnabled() && rsp.getToLog().size() > 0) { |
| 2882 | // log request at debug in case something goes wrong and we aren't able to log later |
| 2883 | requestLog.debug(rsp.getToLogAsString()); |
| 2884 | } |
| 2885 | |
| 2886 | // TODO: this doesn't seem to be working correctly and causes problems with the example server |
| 2887 | // and distrib (for example /spell) |
| 2888 | // if (req.getParams().getBool(ShardParams.IS_SHARD,false) && !(handler instanceof |
| 2889 | // SearchHandler)) |
| 2890 | // throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,"isShard is only acceptable |
| 2891 | // with search handlers"); |
no test coverage detected