Skip to content

Commit

Permalink
remove a debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
maiha committed Dec 22, 2015
1 parent 1c44fde commit 06f17c9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/scala/sc/ala/kafka/utils/KafkaUtils.scala
Expand Up @@ -36,7 +36,6 @@ abstract class KafkaUtils extends Api {
def leaderBrokers(topic: String): Map[Int, Broker] = {
val resolve = brokers.groupBy(_.id).map{ case (k, list) => (k, list.head) }
try {
println(s"ERROR: topic=$topic, leaders=${leaders(topic)}".red)
leaders(topic).filter(_._2.isDefined).mapValues(_.map(resolve).get)
} catch {
case err: java.util.NoSuchElementException =>
Expand Down

0 comments on commit 06f17c9

Please sign in to comment.