Return-Path: X-Original-To: apmail-curator-commits-archive@minotaur.apache.org Delivered-To: apmail-curator-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D30C411D4B for ; Thu, 15 May 2014 04:51:56 +0000 (UTC) Received: (qmail 28749 invoked by uid 500); 14 May 2014 14:42:45 -0000 Delivered-To: apmail-curator-commits-archive@curator.apache.org Received: (qmail 28662 invoked by uid 500); 14 May 2014 14:42:45 -0000 Mailing-List: contact commits-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list commits@curator.apache.org Received: (qmail 28630 invoked by uid 99); 14 May 2014 14:42:45 -0000 Received: from Unknown (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 May 2014 14:42:45 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id EB7448C428B; Wed, 14 May 2014 14:42:44 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: randgalt@apache.org To: commits@curator.apache.org Date: Wed, 14 May 2014 14:42:47 -0000 Message-Id: <8545685a7efb42dbb9ddc614b278aa18@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [4/4] git commit: By default all the connection issues are logged as error now to maintain backwards compatibility By default all the connection issues are logged as error now to maintain backwards compatibility This closes #6 Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/3c468b23 Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/3c468b23 Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/3c468b23 Branch: refs/heads/master Commit: 3c468b235ee0dc5942fc1658687deca5124b1441 Parents: abe07d4 Author: eceejcr Authored: Mon May 12 08:27:47 2014 +0200 Committer: randgalt Committed: Wed May 14 09:41:40 2014 -0500 ---------------------------------------------------------------------- .../src/main/java/org/apache/curator/utils/DebugUtils.java | 2 +- .../org/apache/curator/framework/imps/CuratorFrameworkImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/3c468b23/curator-client/src/main/java/org/apache/curator/utils/DebugUtils.java ---------------------------------------------------------------------- diff --git a/curator-client/src/main/java/org/apache/curator/utils/DebugUtils.java b/curator-client/src/main/java/org/apache/curator/utils/DebugUtils.java index 0ce2729..ce751ec 100644 --- a/curator-client/src/main/java/org/apache/curator/utils/DebugUtils.java +++ b/curator-client/src/main/java/org/apache/curator/utils/DebugUtils.java @@ -22,7 +22,7 @@ public class DebugUtils { public static final String PROPERTY_LOG_EVENTS = "curator-log-events"; public static final String PROPERTY_DONT_LOG_CONNECTION_ISSUES = "curator-dont-log-connection-problems"; - public static final String PROPERTY_LOG_ALL_CONNECTION_ISSUES_AS_ERROR_LEVEL = "curator-log-all-connection-issues-as-error-level"; + public static final String PROPERTY_LOG_ONLY_FIRST_CONNECTION_ISSUE_AS_ERROR_LEVEL = "curator-log-only-first-connection-issue-as-error-level"; private DebugUtils() { http://git-wip-us.apache.org/repos/asf/curator/blob/3c468b23/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java ---------------------------------------------------------------------- diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java b/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java index 99c8245..e8eb76c 100644 --- a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java +++ b/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java @@ -76,7 +76,7 @@ public class CuratorFrameworkImpl implements CuratorFramework private volatile ExecutorService executorService; private final AtomicBoolean logAsErrorConnectionErrors = new AtomicBoolean(false); - private static final boolean LOG_ALL_CONNECTION_ISSUES_AS_ERROR_LEVEL = Boolean.getBoolean(DebugUtils.PROPERTY_LOG_ALL_CONNECTION_ISSUES_AS_ERROR_LEVEL); + private static final boolean LOG_ALL_CONNECTION_ISSUES_AS_ERROR_LEVEL = !Boolean.getBoolean(DebugUtils.PROPERTY_LOG_ONLY_FIRST_CONNECTION_ISSUE_AS_ERROR_LEVEL); interface DebugBackgroundListener {