You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2015/05/07 15:36:10 UTC

[3/3] incubator-tinkerpop git commit: Check debug level as there is a call to an expensive method.

Check debug level as there is a call to an expensive method.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/135563a8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/135563a8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/135563a8

Branch: refs/heads/master
Commit: 135563a8e478bf70d2a5fad4a714e6f428acc17c
Parents: 5e82f0b
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Thu May 7 08:12:22 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu May 7 08:12:22 2015 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/tinkerpop/gremlin/driver/Client.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/135563a8/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Client.java
----------------------------------------------------------------------
diff --git a/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Client.java b/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Client.java
index b585cb3..ac2b8c1 100644
--- a/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Client.java
+++ b/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Client.java
@@ -132,7 +132,8 @@ public abstract class Client {
         } catch (Exception ex) {
             throw new RuntimeException(ex);
         } finally {
-            logger.debug("Submitted {} to - {}", msg, null == connection ? "connection not initialized" : connection.toString());
+            if (logger.isDebugEnabled())
+                logger.debug("Submitted {} to - {}", msg, null == connection ? "connection not initialized" : connection.toString());
         }
     }