Skip to content

Commit

Permalink
[strimzi#434] feat: added create topic endpoint - logger edit
Browse files Browse the repository at this point in the history
Signed-off-by: ilkerkocatepe <[email protected]>
  • Loading branch information
ilkerkocatepe committed Nov 19, 2024
1 parent 36c2fa0 commit b17bf93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/io/strimzi/kafka/bridge/KafkaBridgeAdmin.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ public CompletionStage<Set<String>> listTopics() {
* @return a CompletionStage Void
*/
public CompletionStage<Void> createTopic(String topicName) {
log.trace("Create topic thread {}", Thread.currentThread());
log.info("Create topic {}", topicName);
LOGGER.trace("Create topic thread {}", Thread.currentThread());
LOGGER.info("Create topic {}", topicName);
CompletableFuture<Void> promise = new CompletableFuture<>();
this.adminClient.createTopics(Collections.singletonList(new NewTopic(topicName, 2, (short) 1)))
.all()
.whenComplete((topic, exception) -> {
log.trace("Create topic callback thread {}", Thread.currentThread());
LOGGER.trace("Create topic callback thread {}", Thread.currentThread());
if (exception == null) {
promise.complete(topic);
} else {
Expand Down

0 comments on commit b17bf93

Please sign in to comment.