Ignore:
Timestamp:
03/10/15 14:16:28 (9 years ago)
Author:
emanuel.dima@uni-tuebingen.de
Message:
  1. beta-27: more results, bug fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • SRUAggregator/trunk/src/main/java/eu/clarin/sru/fcs/aggregator/scan/ScanCrawler.java

    r6081 r6092  
    225225                final Corpora corpora;
    226226                final int depth;
    227                 String fullRequestUrl;
    228227
    229228                ScanTask(final Institution institution, final Endpoint endpoint,
     
    248247                                scanRequest.setExtraRequestData(SRUCQL.SCAN_RESOURCE_INFO_PARAMETER,
    249248                                                SRUCQL.SCAN_RESOURCE_INFO_PARAMETER_DEFAULT_VALUE);
    250                                 fullRequestUrl = scanRequest.getRequestedURI().toString();
    251249                        } catch (Throwable ex) {
    252250                                log.error("Exception creating scan request for {}: {}", endpoint.getUrl(), ex.getMessage());
     
    285283                                        for (SRUDiagnostic d : response.getDiagnostics()) {
    286284                                                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);
    289287                                        }
    290288                                }
     
    294292                                log.error("{} Exception in scan callback {}#{}", latch.get(), endpoint.getUrl(), normalizeHandle(parentCorpus));
    295293                                log.error("--> ", xc);
    296                                 statistics.addErrorDatapoint(institution, endpoint, xc, fullRequestUrl);
     294                                statistics.addErrorDatapoint(institution, endpoint, xc, response.getRequest().getRequestedURI().toString());
    297295                        } finally {
    298296                                latch.decrement();
     
    305303                                log.error("{} Error while scanning {}#{}: {}", latch.get(), endpoint.getUrl(), normalizeHandle(parentCorpus), error.getMessage());
    306304                                statistics.addEndpointDatapoint(institution, endpoint, stats.getQueueTime(), stats.getExecutionTime());
    307                                 statistics.addErrorDatapoint(institution, endpoint, error, fullRequestUrl);
     305                                statistics.addErrorDatapoint(institution, endpoint, error, request.getRequestedURI().toString());
    308306                                if (Throw.isCausedBy(error, SocketTimeoutException.class)) {
    309307                                        return;
Note: See TracChangeset for help on using the changeset viewer.