Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-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 72C7318719 for ; Sun, 6 Dec 2015 08:38:34 +0000 (UTC) Received: (qmail 19243 invoked by uid 500); 6 Dec 2015 08:38:34 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 19208 invoked by uid 500); 6 Dec 2015 08:38:34 -0000 Mailing-List: contact commits-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list commits@ignite.apache.org Received: (qmail 19197 invoked by uid 99); 6 Dec 2015 08:38:34 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Dec 2015 08:38:34 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 28BD9DFADE; Sun, 6 Dec 2015 08:38:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dmagda@apache.org To: commits@ignite.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: ignite git commit: Printing "Failed to register marshalled class" warning in the versbose mode only Date: Sun, 6 Dec 2015 08:38:34 +0000 (UTC) Repository: ignite Updated Branches: refs/heads/ignite-1.5 3d585d5a5 -> 8033bc46d Printing "Failed to register marshalled class" warning in the versbose mode only Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/8033bc46 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/8033bc46 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/8033bc46 Branch: refs/heads/ignite-1.5 Commit: 8033bc46df9087971e72187ff75557749cee3f7b Parents: 3d585d5 Author: Denis Magda Authored: Sun Dec 6 11:38:17 2015 +0300 Committer: Denis Magda Committed: Sun Dec 6 11:38:17 2015 +0300 ---------------------------------------------------------------------- .../org/apache/ignite/internal/MarshallerContextImpl.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/8033bc46/modules/core/src/main/java/org/apache/ignite/internal/MarshallerContextImpl.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/MarshallerContextImpl.java b/modules/core/src/main/java/org/apache/ignite/internal/MarshallerContextImpl.java index 5c9b54f..276cdc3 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/MarshallerContextImpl.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/MarshallerContextImpl.java @@ -123,10 +123,9 @@ public class MarshallerContextImpl extends MarshallerContextAdapter { } catch (CachePartialUpdateCheckedException | GridCacheTryPutFailedException e) { if (++failedCnt > 10) { - String msg = "Failed to register marshalled class for more than 10 times in a row " + - "(may affect performance)."; - - U.quietAndWarn(log, msg, msg); + if (log.isQuiet()) + U.quiet(false, "Failed to register marshalled class for more than 10 times in a row " + + "(may affect performance)."); failedCnt = 0; }