Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-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 1A89E10C66 for ; Mon, 16 Sep 2013 13:23:57 +0000 (UTC) Received: (qmail 14208 invoked by uid 500); 16 Sep 2013 13:23:56 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 14163 invoked by uid 500); 16 Sep 2013 13:23:55 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 14148 invoked by uid 99); 16 Sep 2013 13:23:52 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Sep 2013 13:23:52 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 5ADD490598C; Mon, 16 Sep 2013 13:23:52 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dejanb@apache.org To: commits@activemq.apache.org Message-Id: <6a9533ce123c4753a8b63b7877e61c00@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: https://issues.apache.org/jira/browse/AMQ-4621 - return modified trace logging Date: Mon, 16 Sep 2013 13:23:52 +0000 (UTC) Updated Branches: refs/heads/trunk 25af8e62c -> 269d44cfd https://issues.apache.org/jira/browse/AMQ-4621 - return modified trace logging Project: http://git-wip-us.apache.org/repos/asf/activemq/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/269d44cf Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/269d44cf Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/269d44cf Branch: refs/heads/trunk Commit: 269d44cfdde82ba60f3f3b50b9eca18c29a38e5c Parents: 25af8e6 Author: Dejan Bosanac Authored: Mon Sep 16 15:23:37 2013 +0200 Committer: Dejan Bosanac Committed: Mon Sep 16 15:23:37 2013 +0200 ---------------------------------------------------------------------- .../broker/region/policy/AbortSlowAckConsumerStrategy.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq/blob/269d44cf/activemq-broker/src/main/java/org/apache/activemq/broker/region/policy/AbortSlowAckConsumerStrategy.java ---------------------------------------------------------------------- diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/region/policy/AbortSlowAckConsumerStrategy.java b/activemq-broker/src/main/java/org/apache/activemq/broker/region/policy/AbortSlowAckConsumerStrategy.java index dedb580..b9dd9f8 100644 --- a/activemq-broker/src/main/java/org/apache/activemq/broker/region/policy/AbortSlowAckConsumerStrategy.java +++ b/activemq-broker/src/main/java/org/apache/activemq/broker/region/policy/AbortSlowAckConsumerStrategy.java @@ -149,10 +149,10 @@ public class AbortSlowAckConsumerStrategy extends AbortSlowConsumerStrategy { if (getMaxSlowDuration() > 0 && (entry.getValue().markCount * getCheckPeriod() >= getMaxSlowDuration()) || getMaxSlowCount() > 0 && entry.getValue().slowCount >= getMaxSlowCount()) { - LOG.trace("Transferring consumer {} to the abort list: " + - "slow duration = " + entry.getValue().markCount * getCheckPeriod() + ", " + - "slow count = " + entry.getValue().slowCount, - entry.getKey().getConsumerInfo().getConsumerId()); + LOG.trace("Transferring consumer{} to the abort list: {} slow duration = {}, slow count = {}", + new Object[]{ entry.getKey().getConsumerInfo().getConsumerId(), + entry.getValue().markCount * getCheckPeriod(), + entry.getValue().getSlowCount() }); toAbort.put(entry.getKey(), entry.getValue()); slowConsumers.remove(entry.getKey());