Skip to content

Commit

Permalink
add debug log…
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Dec 16, 2024
1 parent d19901b commit 15d73f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void consume(PubSubEvent event) throws Exception {
void consumeFromLatest(PubSubEvent event) throws Exception {
}

ConsumeFromLatest
@Subscription(topic = TestTopicTopic.class, from = FromOffset.LATEST)
@Retry(count = 2, minBackoff = "1s", maxBackoff = "1s")
public void consumeButFailAndRetry(PubSubEvent event) {
throw new RuntimeException("always error: event " + event.getTime());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ private SchemaContributorBuildItem generateSubscription(MethodInfo method, Strin
.setMinBackoff(retry.minBackoff());
builder.addMetadata(Metadata.newBuilder().setRetry(retryBuilder).build());
}

log.info("FromOffset value is: " + info.from());
}));
});
}
Expand Down

0 comments on commit 15d73f7

Please sign in to comment.