Return-Path: X-Original-To: apmail-kafka-commits-archive@www.apache.org Delivered-To: apmail-kafka-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C6DA6E18F for ; Sat, 26 Jan 2013 06:04:50 +0000 (UTC) Received: (qmail 56880 invoked by uid 500); 26 Jan 2013 06:04:50 -0000 Delivered-To: apmail-kafka-commits-archive@kafka.apache.org Received: (qmail 56636 invoked by uid 500); 26 Jan 2013 06:04:47 -0000 Mailing-List: contact commits-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list commits@kafka.apache.org Received: (qmail 55740 invoked by uid 99); 26 Jan 2013 06:04:36 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Jan 2013 06:04:36 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 725C3825CAC; Sat, 26 Jan 2013 06:04:36 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: junrao@apache.org To: commits@kafka.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [22/28] git commit: Minor log4j fix in the producer Message-Id: <20130126060436.725C3825CAC@tyr.zones.apache.org> Date: Sat, 26 Jan 2013 06:04:36 +0000 (UTC) Minor log4j fix in the producer Project: http://git-wip-us.apache.org/repos/asf/kafka/repo Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/8e7effc0 Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/8e7effc0 Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/8e7effc0 Branch: refs/heads/trunk Commit: 8e7effc0550f57064fba0c3b48a248ad9c3ab003 Parents: cb3359f Author: Neha Narkhede Authored: Thu Jan 24 10:06:32 2013 -0800 Committer: Neha Narkhede Committed: Thu Jan 24 10:06:32 2013 -0800 ---------------------------------------------------------------------- .../kafka/producer/async/DefaultEventHandler.scala | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kafka/blob/8e7effc0/core/src/main/scala/kafka/producer/async/DefaultEventHandler.scala ---------------------------------------------------------------------- diff --git a/core/src/main/scala/kafka/producer/async/DefaultEventHandler.scala b/core/src/main/scala/kafka/producer/async/DefaultEventHandler.scala index 05e7c6c..374cd6b 100644 --- a/core/src/main/scala/kafka/producer/async/DefaultEventHandler.scala +++ b/core/src/main/scala/kafka/producer/async/DefaultEventHandler.scala @@ -239,10 +239,10 @@ class DefaultEventHandler[K,V](config: ProducerConfig, try { val syncProducer = producerPool.getProducer(brokerId) debug("Producer sending messages with correlation id %d for topics %s to broker %d on %s:%d" - .format(currentCorrelationId, messagesPerTopic, brokerId, syncProducer.config.host, syncProducer.config.port)) + .format(currentCorrelationId, messagesPerTopic.keySet.mkString(","), brokerId, syncProducer.config.host, syncProducer.config.port)) val response = syncProducer.send(producerRequest) debug("Producer sent messages with correlation id %d for topics %s to broker %d on %s:%d" - .format(currentCorrelationId, messagesPerTopic, brokerId, syncProducer.config.host, syncProducer.config.port)) + .format(currentCorrelationId, messagesPerTopic.keySet.mkString(","), brokerId, syncProducer.config.host, syncProducer.config.port)) if (response.status.size != producerRequest.data.size) throw new KafkaException("Incomplete response (%s) for producer request (%s)" .format(response, producerRequest))