Source:
<code>public void execute(Object o) { if (search == null) { search = elasticsearchClientManager.getClient() .prepareSearch(indexes.toArray(new String[0])) .setSearchType(SearchType.SCAN) .setSize(Objects.firstNonNull(batchSize, DEFAULT_BATCH_SIZE).intValue()) .setScroll(Objects.firstNonNull(scrollTimeout, DEFAULT_SCROLL_TIMEOUT)); String searchJson; if( config.getSearch() != null ) { LOGGER.debug("Have config in Reader: " + config.getSearch().toString()); try { searchJson = mapper.writeValueAsString(config.getSearch()); LOGGER.debug("Setting source: " + searchJson); search = search.setExtraSource(searchJson); } catch (JsonProcessingException e) { LOGGER.warn("Could not apply _search supplied by config"); <START> e.printStackTrace(); <END> } LOGGER.debug("Search Source is now " + search.toString()); } if (this.queryBuilder != null) search = search.setQuery(this.queryBuilder); if (this.types != null && this.types.size() > 0) search = search.setTypes(types.toArray(new String[0])); Integer clauses = 0; if (this.withfields != null || this.withoutfields != null) { if (this.withfields != null) clauses += this.withfields.length; if (this.withoutfields != null) clauses += this.withoutfields.length; } List<FilterBuilder> filterList = buildFilterList(); FilterBuilder allFilters = andFilters(filterList); if (clauses > 0) { search = search.setPostFilter(allFilters); } if (this.random) search = search.addSort(SortBuilders.scriptSort("random()", "number")); } if (scrollResp == null) { scrollResp = search.execute().actionGet(); LOGGER.trace(search.toString()); } }</code><technical_language>pass exception parameter LOGGER.warn printing</technical_language>

Target:
public void execute(Object o) { if (search == null) { search = elasticsearchClientManager.getClient() .prepareSearch(indexes.toArray(new String[0])) .setSearchType(SearchType.SCAN) .setSize(Objects.firstNonNull(batchSize, DEFAULT_BATCH_SIZE).intValue()) .setScroll(Objects.firstNonNull(scrollTimeout, DEFAULT_SCROLL_TIMEOUT)); String searchJson; if( config.getSearch() != null ) { LOGGER.debug("Have config in Reader: " + config.getSearch().toString()); try { searchJson = mapper.writeValueAsString(config.getSearch()); LOGGER.debug("Setting source: " + searchJson); search = search.setExtraSource(searchJson); } catch (JsonProcessingException e) { LOGGER.warn("Could not apply _search supplied by config", e.getMessage()); } LOGGER.debug("Search Source is now " + search.toString()); } if (this.queryBuilder != null) search = search.setQuery(this.queryBuilder); if (this.types != null && this.types.size() > 0) search = search.setTypes(types.toArray(new String[0])); Integer clauses = 0; if (this.withfields != null || this.withoutfields != null) { if (this.withfields != null) clauses += this.withfields.length; if (this.withoutfields != null) clauses += this.withoutfields.length; } List<FilterBuilder> filterList = buildFilterList(); FilterBuilder allFilters = andFilters(filterList); if (clauses > 0) { search = search.setPostFilter(allFilters); } if (this.random) search = search.addSort(SortBuilders.scriptSort("random()", "number")); } if (scrollResp == null) { scrollResp = search.execute().actionGet(); LOGGER.trace(search.toString()); } }