Skip to content

Commit

Permalink
Revert "Switched field to search for domain in crawl log"
Browse files Browse the repository at this point in the history
This reverts commit f0e2fec
  • Loading branch information
csrster committed Jan 25, 2022
1 parent f0e2fec commit 534e263
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -410,7 +410,7 @@ private static List<String> getMatchingDomainStringsFromFile(File cacheFile, Str

private static boolean lineMatchesDomain(String crawlLine, String domain) {
try {
String urlS = crawlLine.split("\\s+")[3];
String urlS = crawlLine.split("\\s+")[10];
URL url = new URL(urlS);
if (url.getHost().equals(domain) || url.getHost().endsWith("."+domain)) {
log.debug("Domain {} found in crawlline {}", domain, crawlLine);
Expand All @@ -420,7 +420,7 @@ private static boolean lineMatchesDomain(String crawlLine, String domain) {
return false;
}
} catch (Exception e) {
log.debug("No domain to match found in {}", crawlLine, e);
log.debug("No domain to match found in {}", crawlLine);
return false;
}
}
Expand Down

0 comments on commit 534e263

Please sign in to comment.