ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dma...@apache.org
Subject ignite git commit: IGNITE-4159: fixing logging (cherry picked from commit 06908d2)
Date Thu, 16 Feb 2017 04:38:25 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-1.9 004aca0bb -> fa27ee3c0


IGNITE-4159: fixing logging
(cherry picked from commit 06908d2)


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/fa27ee3c
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/fa27ee3c
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/fa27ee3c

Branch: refs/heads/ignite-1.9
Commit: fa27ee3c03ac16cf0c5a86cfd0cfe5610e82d1a3
Parents: 004aca0
Author: Denis Magda <dmagda@gridgain.com>
Authored: Wed Feb 15 20:37:26 2017 -0800
Committer: Denis Magda <dmagda@gridgain.com>
Committed: Wed Feb 15 20:38:18 2017 -0800

----------------------------------------------------------------------
 .../ipfinder/kubernetes/TcpDiscoveryKubernetesIpFinder.java    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/fa27ee3c/modules/kubernetes/src/main/java/org/apache/ignite/spi/discovery/tcp/ipfinder/kubernetes/TcpDiscoveryKubernetesIpFinder.java
----------------------------------------------------------------------
diff --git a/modules/kubernetes/src/main/java/org/apache/ignite/spi/discovery/tcp/ipfinder/kubernetes/TcpDiscoveryKubernetesIpFinder.java
b/modules/kubernetes/src/main/java/org/apache/ignite/spi/discovery/tcp/ipfinder/kubernetes/TcpDiscoveryKubernetesIpFinder.java
index f312195..53b6df6 100644
--- a/modules/kubernetes/src/main/java/org/apache/ignite/spi/discovery/tcp/ipfinder/kubernetes/TcpDiscoveryKubernetesIpFinder.java
+++ b/modules/kubernetes/src/main/java/org/apache/ignite/spi/discovery/tcp/ipfinder/kubernetes/TcpDiscoveryKubernetesIpFinder.java
@@ -137,7 +137,8 @@ public class TcpDiscoveryKubernetesIpFinder extends TcpDiscoveryIpFinderAdapter
         Collection<InetSocketAddress> addrs = new ArrayList<>();
 
         try {
-            log.debug("Getting Apache Ignite endpoints from: " + url);
+            if (log.isDebugEnabled())
+                log.debug("Getting Apache Ignite endpoints from: " + url);
 
             HttpsURLConnection conn = (HttpsURLConnection)url.openConnection();
 
@@ -159,7 +160,8 @@ public class TcpDiscoveryKubernetesIpFinder extends TcpDiscoveryIpFinderAdapter
                             for (Address address : subset.addresses) {
                                 addrs.add(new InetSocketAddress(address.ip, 0));
 
-                                log.debug("Added an address to the list: " + address.ip);
+                                if (log.isDebugEnabled())
+                                    log.debug("Added an address to the list: " + address.ip);
                             }
                         }
                     }


Mime
View raw message