Update logging statements to be trace level.
Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/46cd401d Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/46cd401d Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/46cd401d Branch: refs/heads/master Commit: 46cd401deac94235982991ca218591fceaa43264 Parents: 1284db7 Author: Michael Russo <[email protected]> Authored: Sat Apr 30 21:00:09 2016 +0800 Committer: Michael Russo <[email protected]> Committed: Sat Apr 30 21:00:09 2016 +0800 ---------------------------------------------------------------------- .../impl/shard/impl/NodeShardAllocationImpl.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/usergrid/blob/46cd401d/stack/corepersistence/graph/src/main/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/impl/NodeShardAllocationImpl.java ---------------------------------------------------------------------- diff --git a/stack/corepersistence/graph/src/main/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/impl/NodeShardAllocationImpl.java b/stack/corepersistence/graph/src/main/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/impl/NodeShardAllocationImpl.java index 0c65912..47b630f 100644 --- a/stack/corepersistence/graph/src/main/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/impl/NodeShardAllocationImpl.java +++ b/stack/corepersistence/graph/src/main/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/impl/NodeShardAllocationImpl.java @@ -94,7 +94,6 @@ public class NodeShardAllocationImpl implements NodeShardAllocation { else { existingShards = edgeShardSerialization.getShardMetaData( scope, maxShardId, directedEdgeMeta ); - //logger.info("existing shards has something: {}", existingShards.hasNext()); /** * We didn't get anything out of cassandra, so we need to create the minimum shard @@ -113,8 +112,6 @@ public class NodeShardAllocationImpl implements NodeShardAllocation { } } - //logger.info("getShards existing shards: {}", existingShards); - return new ShardEntryGroupIterator( existingShards, graphFig.getShardMinDelta(), shardGroupCompaction, scope, directedEdgeMeta ); } @@ -240,7 +237,9 @@ public class NodeShardAllocationImpl implements NodeShardAllocation { final Shard newShard = new Shard( marked.getTimestamp(), createTimestamp, false ); - logger.info( "Allocating new shard {} for edge meta {}", newShard, directedEdgeMeta ); + if(logger.isTraceEnabled()) { + logger.trace("Allocating new shard {} for edge meta {}", newShard, directedEdgeMeta); + } final MutationBatch batch = this.edgeShardSerialization.writeShardMeta( scope, newShard, directedEdgeMeta );
