diff --git a/core/src/main/scala/kafka/consumer/ConsoleConsumer.scala b/core/src/main/scala/kafka/consumer/ConsoleConsumer.scala index 9378357cab9..b857d145496 100644 --- a/core/src/main/scala/kafka/consumer/ConsoleConsumer.scala +++ b/core/src/main/scala/kafka/consumer/ConsoleConsumer.scala @@ -209,7 +209,7 @@ object ConsoleConsumer extends Logging { } catch { case e => error("Error processing message, stopping consumer: ", e) } - System.out.println("Consumed %d messages".format(numMessages)) + System.err.println("Consumed %d messages".format(numMessages)) System.out.flush() formatter.close() connector.shutdown()