Fix error log reporting of batch size for trough crawl logs

This commit is contained in:
Adam Miller
2021-02-18 23:06:51 +00:00
parent 14be8752e9
commit 79e56337b2
@@ -280,9 +280,8 @@ public class TroughCrawlLogFeed extends Processor implements Lifecycle {
try {
troughClient().write(getSegmentId(), sqlTmpl.toString(), flattenedValues);
} catch (Exception e) {
logger.log(Level.WARNING, "problem posting batch of " + flattenedValues.length + " crawled urls to trough segment " + getSegmentId(), e);
logger.log(Level.WARNING, "problem posting batch of " + (flattenedValues.length/16) + " crawled urls to trough segment " + getSegmentId(), e);
}
crawledBatchLastTime = System.currentTimeMillis();
}
}