diff --git a/data-plane/dispatcher/src/main/java/dev/knative/eventing/kafka/broker/dispatcher/impl/consumer/ConsumerVerticle.java b/data-plane/dispatcher/src/main/java/dev/knative/eventing/kafka/broker/dispatcher/impl/consumer/ConsumerVerticle.java index ca36dc3005..8ba588419a 100644 --- a/data-plane/dispatcher/src/main/java/dev/knative/eventing/kafka/broker/dispatcher/impl/consumer/ConsumerVerticle.java +++ b/data-plane/dispatcher/src/main/java/dev/knative/eventing/kafka/broker/dispatcher/impl/consumer/ConsumerVerticle.java @@ -65,14 +65,14 @@ public void start(Promise startPromise) { @Override public void stop(Promise stopPromise) { - logger.info("Stopping consumer {}", consumerVerticleContext.getLoggingKeyValue()); + logger.info("Stopping consumer verticle {}", consumerVerticleContext.getLoggingKeyValue()); AsyncCloseable.compose(this.recordDispatcher, this.closeable, this.consumer::close) .close() - .onComplete( - r -> logger.info("Consumer verticle closed {}", consumerVerticleContext.getLoggingKeyValue())); - - stopPromise.tryComplete(); + .onComplete(r -> { + stopPromise.tryComplete(); + logger.info("Consumer verticle closed {}", consumerVerticleContext.getLoggingKeyValue()); + }); } public void setConsumer(ReactiveKafkaConsumer consumer) {