Skip to content

Commit 143eff7

Browse files
author
Brendan Benner
committed
Update log for null item to warn
Signed-off-by: Brendan Benner <bbenner@amazon.com>
1 parent b0b0f09 commit 143eff7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • data-prepper-plugins/saas-source-plugins/source-crawler/src/main/java/org/opensearch/dataprepper/plugins/source/source_crawler/base

data-prepper-plugins/saas-source-plugins/source-crawler/src/main/java/org/opensearch/dataprepper/plugins/source/source_crawler/base/TokenPaginationCrawler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public Instant crawl(LeaderPartition leaderPartition,
6464
final ItemInfo nextItem = itemInfoIterator.next();
6565
if (nextItem == null) {
6666
//we don't expect null items, but just in case, we'll skip them
67-
log.info("Unexpected encounter of a null item.");
67+
log.warn("Unexpected encounter of a null item while processing batch with last item ID " + lastToken);
6868
invalidPaginationItemsCounter.increment();
6969
continue;
7070
}

0 commit comments

Comments
 (0)