X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsamples%2Floadbalancer%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsamples%2Floadbalancer%2Fpolicies%2FRandomLBPolicy.java;h=c169d7979954dd4eb6fa5d69853127802e00110a;hb=af3eaa839bf6f6c86495b24d2174eeb6624501c0;hp=ba5d5babb6d117e47fbb8413ae13e8e6c19c4cf2;hpb=ff1b4a79cca00743a00c3b0b1100bd0ab2b2fb31;p=controller.git diff --git a/opendaylight/samples/loadbalancer/src/main/java/org/opendaylight/controller/samples/loadbalancer/policies/RandomLBPolicy.java b/opendaylight/samples/loadbalancer/src/main/java/org/opendaylight/controller/samples/loadbalancer/policies/RandomLBPolicy.java index ba5d5babb6..c169d79799 100644 --- a/opendaylight/samples/loadbalancer/src/main/java/org/opendaylight/controller/samples/loadbalancer/policies/RandomLBPolicy.java +++ b/opendaylight/samples/loadbalancer/src/main/java/org/opendaylight/controller/samples/loadbalancer/policies/RandomLBPolicy.java @@ -57,7 +57,7 @@ public class RandomLBPolicy implements ILoadBalancingPolicy { @Override public String getPoolMemberForClient(Client source, VIP dest){ - rLogger.info("Received traffic from client : {} for VIP : {} ",source, dest); + rLogger.trace("Received traffic from client : {} for VIP : {} ",source, dest); syncWithLoadBalancerData(); @@ -65,14 +65,14 @@ public class RandomLBPolicy implements ILoadBalancingPolicy { if(this.clientMemberMap.containsKey(source)){ pm= this.clientMemberMap.get(source); - rLogger.info("Client {} had sent traffic before,new traffic will be routed to the same pool member {}",source,pm); + rLogger.trace("Client {} had sent traffic before,new traffic will be routed to the same pool member {}",source,pm); }else{ Pool pool = null; pool = this.cmgr.getPool(dest.getPoolName()); int memberNum = this.randomGenerator.nextInt(pool.getAllMembers().size()-1); pm = pool.getAllMembers().get(memberNum); this.clientMemberMap.put(source, pm ); - rLogger.info("Network traffic from client {} will be directed to pool member {}",pm); + rLogger.trace("Network traffic from client {} will be directed to pool member {}",pm); } return pm.getIp(); }