Changeset 6092 for SRUAggregator/trunk/src/main/java/eu/clarin/sru/fcs/aggregator/scan/ScanCrawler.java
- Timestamp:
- 03/10/15 14:16:28 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SRUAggregator/trunk/src/main/java/eu/clarin/sru/fcs/aggregator/scan/ScanCrawler.java
r6081 r6092 225 225 final Corpora corpora; 226 226 final int depth; 227 String fullRequestUrl;228 227 229 228 ScanTask(final Institution institution, final Endpoint endpoint, … … 248 247 scanRequest.setExtraRequestData(SRUCQL.SCAN_RESOURCE_INFO_PARAMETER, 249 248 SRUCQL.SCAN_RESOURCE_INFO_PARAMETER_DEFAULT_VALUE); 250 fullRequestUrl = scanRequest.getRequestedURI().toString();251 249 } catch (Throwable ex) { 252 250 log.error("Exception creating scan request for {}: {}", endpoint.getUrl(), ex.getMessage()); … … 285 283 for (SRUDiagnostic d : response.getDiagnostics()) { 286 284 Diagnostic diag = new Diagnostic(d.getURI(), d.getMessage(), d.getDetails()); 287 statistics.addEndpointDiagnostic(institution, endpoint, diag, fullRequestUrl);288 log.info("Diagnostic: {}: {}", fullRequestUrl, diag.message);285 statistics.addEndpointDiagnostic(institution, endpoint, diag, response.getRequest().getRequestedURI().toString()); 286 log.info("Diagnostic: {}: {}", response.getRequest().getRequestedURI().toString(), diag.message); 289 287 } 290 288 } … … 294 292 log.error("{} Exception in scan callback {}#{}", latch.get(), endpoint.getUrl(), normalizeHandle(parentCorpus)); 295 293 log.error("--> ", xc); 296 statistics.addErrorDatapoint(institution, endpoint, xc, fullRequestUrl);294 statistics.addErrorDatapoint(institution, endpoint, xc, response.getRequest().getRequestedURI().toString()); 297 295 } finally { 298 296 latch.decrement(); … … 305 303 log.error("{} Error while scanning {}#{}: {}", latch.get(), endpoint.getUrl(), normalizeHandle(parentCorpus), error.getMessage()); 306 304 statistics.addEndpointDatapoint(institution, endpoint, stats.getQueueTime(), stats.getExecutionTime()); 307 statistics.addErrorDatapoint(institution, endpoint, error, fullRequestUrl);305 statistics.addErrorDatapoint(institution, endpoint, error, request.getRequestedURI().toString()); 308 306 if (Throw.isCausedBy(error, SocketTimeoutException.class)) { 309 307 return;
Note: See TracChangeset
for help on using the changeset viewer.