File tree Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -41,3 +41,5 @@ Alternatively you can provide a custom path to the properties file using `-Dprop
4141If your Kafka is secured you will need to enable the security configuration options in your properties file.
4242
4343To increase the logging level to debug provide a system property at start time: ` -Dlog.level=debug ` .
44+
45+ To increase the Kafka client logging level to info provide a system property at start time: ` -Dlog.level.kafka=info ` .
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ bootstrap.servers=localhost:9092
77# ##################################################################
88group.id =my_group
99auto.offset.reset =earliest
10- enable.auto.commit =false
1110key.deserializer =org.apache.kafka.common.serialization.StringDeserializer
1211value.deserializer =org.apache.kafka.common.serialization.StringDeserializer
1312
Original file line number Diff line number Diff line change 1717import io .vertx .ext .web .handler .StaticHandler ;
1818import io .vertx .kafka .client .common .TopicPartition ;
1919import io .vertx .kafka .client .consumer .KafkaConsumer ;
20+ import org .apache .kafka .clients .consumer .ConsumerConfig ;
2021import org .slf4j .Logger ;
2122import org .slf4j .LoggerFactory ;
2223
@@ -44,6 +45,8 @@ public void start(Promise<Void> startPromise) {
4445 String propertiesPath = System .getProperty (Main .PROPERTIES_PATH_ENV_NAME , Main .DEFAULT_PROPERTIES_PATH );
4546 Main .loadKafkaConfig (vertx , propertiesPath )
4647 .compose (config -> {
48+ // Auto commit as this is a demo app
49+ config .put (ConsumerConfig .ENABLE_AUTO_COMMIT_CONFIG , true );
4750 kafkaConfig = config .mapTo (HashMap .class );
4851 return startWebSocket (router );
4952 })
Original file line number Diff line number Diff line change 88
99 <logger name =" io.netty" level =" warn" />
1010 <logger name =" io.vertx" level =" info" />
11- <logger name =" org.apache.kafka" level =" error" />
11+ <logger name =" org.apache.kafka" level =" ${log.level.kafka:- error} " />
1212 <logger name =" org.apache.kafka.clients.NetworkClient" level =" warn" />
1313
1414 <root level =" ${log.level:-info}" >
You can’t perform that action at this time.
0 commit comments