Skip to content

Commit

Permalink
test echo debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Shmakov committed Feb 15, 2017
1 parent f443f66 commit a5dd296
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ func setEnv() {
targetPoolSuffix = "rancher.internal"
}

logrus.Debugf("version: %s", "0.2" )

}

func main() {
Expand Down
7 changes: 4 additions & 3 deletions providers/elbv1/aws_elbv1.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,10 @@ func (p *AWSELBv1Provider) GetLBConfigs() ([]model.LBConfig, error) {
return lbConfigs, nil
}

allNames := make([]string, len(allLb))
for i, lb := range allLb {
allNames[i] = *lb.LoadBalancerName
allNames := make([]string, 20)
for i := 0; i < 20 ; i++ {
allNames[i] = *allLb[i].LoadBalancerName
logrus.Debugf("LoadBalancerName => adding %s", allNames[i] )
}

lbTags, err := p.svc.DescribeLBTags(allNames)
Expand Down
8 changes: 5 additions & 3 deletions providers/elbv1/elbv1svc/elb_classic.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ func (svc *ELBClassicService) GetLoadBalancers(names ...string) ([]*elb.LoadBala
// as map of load balancer name => map[string]string.
func (svc *ELBClassicService) DescribeLBTags(loadBalancerNames []string) (map[string]map[string]string, error) {
logrus.Debugf("DescribeLBTags => %v", loadBalancerNames)
awsNames := make([]*string, len(loadBalancerNames))
for i, n := range loadBalancerNames {
awsNames[i] = aws.String(n)

awsNames := make([]*string, 20)
for i := 0; i < 20 ; i++ {
awsNames[i] = aws.String(loadBalancerNames[i])
logrus.Debugf("added => %v", awsNames[i])
}

params := &elb.DescribeTagsInput{
Expand Down

0 comments on commit a5dd296

Please sign in to comment.