Repository: tinkerpop
Updated Branches:
  refs/heads/TRAVIS-TEST 04d6f5849 -> c0bb93293


foo


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

Branch: refs/heads/TRAVIS-TEST
Commit: c0bb93293c936253fb2c36144fc1fe51db39d975
Parents: 04d6f58
Author: Daniel Kuppitz <daniel_kupp...@hotmail.com>
Authored: Mon Mar 12 13:25:53 2018 -0700
Committer: Daniel Kuppitz <daniel_kupp...@hotmail.com>
Committed: Mon Mar 12 13:25:53 2018 -0700

----------------------------------------------------------------------
 .../gremlin/process/traversal/TraversalStrategies.java          | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/c0bb9329/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/TraversalStrategies.java
----------------------------------------------------------------------
diff --git 
a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/TraversalStrategies.java
 
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/TraversalStrategies.java
index 6feb684..36c074d 100644
--- 
a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/TraversalStrategies.java
+++ 
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/TraversalStrategies.java
@@ -23,6 +23,8 @@ import 
org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.finaliza
 import 
org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.optimization.GraphFilterStrategy;
 import 
org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.optimization.MessagePassingReductionStrategy;
 import 
org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration.ConnectiveStrategy;
+import 
org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration.RequirementsStrategy;
+import 
org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration.SubgraphStrategy;
 import 
org.apache.tinkerpop.gremlin.process.traversal.strategy.finalization.ProfileStrategy;
 import 
org.apache.tinkerpop.gremlin.process.traversal.strategy.optimization.AdjacentToIncidentStrategy;
 import 
org.apache.tinkerpop.gremlin.process.traversal.strategy.optimization.FilterRankingStrategy;
@@ -176,7 +178,8 @@ public interface TraversalStrategies extends Serializable, 
Cloneable {
             }
         }
 
-        logger.error("Sorted strategies: " + 
sortedStrategies.stream().map(TraversalStrategy::toString).collect(Collectors.toList()));
+        if (sortedStrategies.stream().anyMatch(s -> s instanceof 
SubgraphStrategy || s instanceof RequirementsStrategy))
+            logger.error("Sorted strategies: " + 
sortedStrategies.stream().map(TraversalStrategy::toString).collect(Collectors.toList()));
 
         return sortedStrategies;
     }

Reply via email to