Skip to content

Commit

Permalink
correct logs information in KafkaPartitionDiscoverer
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiayi Liao authored and aljoscha committed Apr 14, 2020
1 parent d241773 commit 485ac22
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected List<KafkaTopicPartition> getAllPartitionsForTopics(List<String> topic
final List<PartitionInfo> kafkaPartitions = kafkaConsumer.partitionsFor(topic);

if (kafkaPartitions == null) {
throw new RuntimeException("Could not fetch partitions for %s. Make sure that the topic exists.".format(topic));
throw new RuntimeException(String.format("Could not fetch partitions for %s. Make sure that the topic exists.", topic));
}

for (PartitionInfo partitionInfo : kafkaPartitions) {
Expand Down

0 comments on commit 485ac22

Please sign in to comment.