From 149948b57de14ddacabc81c16a278ceff4cf927a Mon Sep 17 00:00:00 2001 From: Tathagata Das Date: Thu, 13 Nov 2014 13:55:09 -0800 Subject: [PATCH] Fixed mistake --- .../apache/spark/streaming/kafka/ReliableKafkaReceiver.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/external/kafka/src/main/scala/org/apache/spark/streaming/kafka/ReliableKafkaReceiver.scala b/external/kafka/src/main/scala/org/apache/spark/streaming/kafka/ReliableKafkaReceiver.scala index 09c3d1c4549e7..be734b80272d1 100644 --- a/external/kafka/src/main/scala/org/apache/spark/streaming/kafka/ReliableKafkaReceiver.scala +++ b/external/kafka/src/main/scala/org/apache/spark/streaming/kafka/ReliableKafkaReceiver.scala @@ -227,8 +227,9 @@ class ReliableKafkaReceiver[ ZkUtils.updatePersistentPath(zkClient, zkPath, offset.toString) } catch { - case e: Exception => logWarning(s"Exception during commit offset $offset for topic" + - s"${topicAndPart.topic}, partition ${topicAndPart.partition}", t) + case e: Exception => + logWarning(s"Exception during commit offset $offset for topic" + + s"${topicAndPart.topic}, partition ${topicAndPart.partition}", e) } logInfo(s"Committed offset $offset for topic ${topicAndPart.topic}, " +