confluentinc / schema-registry

Confluent Schema Registry for Kafka
https://docs.confluent.io/current/schema-registry/docs/index.html
Other
2.23k stars 1.12k forks source link

kafka-avro-console-consumer --timeout-ms logs at the wrong level #1082

Open MichaelDrogalis opened 5 years ago

MichaelDrogalis commented 5 years ago

When using kafka-avro-console-consumer with the --timeout-ms M switch, it will read messages for up to M milliseconds and then exit. Just before it exits, it logs the following message to ERROR:

[2019-04-08 21:36:45,126] ERROR Error processing message, terminating consumer process:  (kafka.tools.ConsoleConsumer$)
org.apache.kafka.common.errors.TimeoutException

Instead of logging to ERROR, this should log to INFO. This isn't an error because I instructed the program to terminate after the given duration.

pranayk01 commented 4 years ago

Facing the same issue, [2019-12-10 15:53:04,788] ERROR Error processing message, terminating consumer process: (kafka.tools.ConsoleConsumer$:76) org.apache.kafka.common.errors.TimeoutException

Can it be modified easily?