Log changes

This commit is contained in:
Ashwin Giridharan 2020-06-22 23:37:38 -07:00
parent d4f3c0b14a
commit ef39ecd0df

View file

@ -231,8 +231,8 @@ public class PrefetchRecordsPublisher implements RecordsPublisher {
throw new IllegalStateException("ExecutorService has been shutdown."); throw new IllegalStateException("ExecutorService has been shutdown.");
} }
if (!started) { if (!started) {
log.info("{} : Starting Prefetching thread and initializing publisher session.", streamAndShardId);
publisherSession.init(extendedSequenceNumber, initialPositionInStreamExtended); publisherSession.init(extendedSequenceNumber, initialPositionInStreamExtended);
log.info("{} : Starting prefetching thread and initializing publisher session.", streamAndShardId);
executorService.execute(defaultGetRecordsCacheDaemon); executorService.execute(defaultGetRecordsCacheDaemon);
} else { } else {
log.info("{} : Skipping publisher start as it was already started.", streamAndShardId); log.info("{} : Skipping publisher start as it was already started.", streamAndShardId);