Skip to content

Commit 2609b08

Browse files
committed
Fix checkstyle on the Binder sample app
1 parent d4e816e commit 2609b08

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spring-pulsar-sample-apps/sample-pulsar-binder/src/main/java/org/springframework/pulsar/sample/binder/SpringPulsarBinderSampleApp.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,14 @@
2020
import java.util.function.Function;
2121
import java.util.function.Supplier;
2222

23-
import org.apache.pulsar.client.api.Schema;
2423
import org.apache.pulsar.common.schema.SchemaType;
2524
import org.slf4j.Logger;
2625
import org.slf4j.LoggerFactory;
2726

28-
import org.springframework.boot.ApplicationRunner;
2927
import org.springframework.boot.SpringApplication;
3028
import org.springframework.boot.autoconfigure.SpringBootApplication;
3129
import org.springframework.context.annotation.Bean;
3230
import org.springframework.pulsar.annotation.PulsarListener;
33-
import org.springframework.pulsar.core.PulsarTemplate;
3431

3532
/**
3633
* This sample binder app has an extra consumer that is equipped with Pulsar's DLT feature - timeLoggerToDlt.
@@ -39,6 +36,8 @@
3936
* When doing this, in order to minimize verbose output and just to focus on the DLT feature, comment out the
4037
* regular supplier below (timeSupplier) and then un-comment the ApplicationRunner below.
4138
* The runner only sends a single message whereas the supplier sends a message every second.
39+
*
40+
* @author Soby Chacko
4241
*/
4342
@SpringBootApplication
4443
public class SpringPulsarBinderSampleApp {
@@ -90,7 +89,7 @@ public Consumer<EnhancedTime> timeLoggerToDlt() {
9089

9190
@PulsarListener(id = "dlqListener", topics = "notification-dlq", schemaType = SchemaType.JSON)
9291
void listenDlq(EnhancedTime msg) {
93-
System.out.println("From DLQ: " + msg);
92+
this.logger.info("From DLQ: {}", msg);
9493
}
9594

9695
record Time(String time) {

0 commit comments

Comments
 (0)