Skip to content

Commit

Permalink
Merge pull request #199 from CJSCommonPlatform/log-message-for-catchup
Browse files Browse the repository at this point in the history
Add catchup Log message to show that all active events are now waitin…
  • Loading branch information
mapingo committed Nov 22, 2019
2 parents a31be22 + b72a990 commit c5798d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on [Keep a CHANGELOG](http://keepachangelog.com/). This project adheres to
[Semantic Versioning](http://semver.org/).

## [Unreleased]
### Added
- Catchup Log message to show that all active events are now waiting to be consumed

## [2.4.1] - 2019-11-20
### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public void performEventCatchup(final CatchupSubscriptionContext catchupSubscrip

}).sum();

logger.info(format("%d active PublishedEvents queued for publishing", totalEventsProcessed));
logger.info("Waiting for publishing consumer completion...");
concurrentEventStreamConsumerManager.waitForCompletion();

final CatchupCompletedForSubscriptionEvent event = new CatchupCompletedForSubscriptionEvent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ public void shouldFetchAllMissingEventsAndProcess() throws Exception {

verify(logger).info("Finding all missing events for event source 'event source', component 'EVENT_LISTENER");
verify(logger).info("CATCHUP for Event Number: " + (eventNumberFrom + 1L));
verify(logger).info("3 active PublishedEvents queued for publishing");
verify(logger).info("Waiting for publishing consumer completion...");
}

@Test
Expand Down

0 comments on commit c5798d7

Please sign in to comment.