From a515e93570c5c117ca29fb05137898817f058fb9 Mon Sep 17 00:00:00 2001 From: Jason Gustafson Date: Fri, 17 Feb 2017 16:31:00 -0800 Subject: [PATCH] HOTFIX: ClassCastException in request logging Author: Jason Gustafson Reviewers: Colin P. Mccabe , Ewen Cheslack-Postava Closes #2566 from hachikuji/hotfix-request-logging --- core/src/main/scala/kafka/network/RequestChannel.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/scala/kafka/network/RequestChannel.scala b/core/src/main/scala/kafka/network/RequestChannel.scala index a5d71602eae..677f9b4fdbd 100644 --- a/core/src/main/scala/kafka/network/RequestChannel.scala +++ b/core/src/main/scala/kafka/network/RequestChannel.scala @@ -108,7 +108,7 @@ object RequestChannel extends Logging { if (requestObj != null) requestObj.describe(details) else - s"$header -- $body" + s"$header -- ${body[AbstractRequest]}" } def body[T <: AbstractRequest : ClassTag] = {