Skip to content

Commit

Permalink
More debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Prachi Damle authored and Prachi Damle committed Apr 15, 2016
1 parent 4d1a065 commit 1b6d58b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions external-lb.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func getProviderLBConfigs() (map[string]model.LBConfig, error) {
logrus.Debugf("Error Getting Rancher LB configs from provider: %v", err)
return nil, err
}
logrus.Debugf("allConfigs: %v", allConfigs)
rancherConfigs := make(map[string]model.LBConfig, len(allConfigs))
suffix := "_rancher.internal"
for _, value := range allConfigs {
Expand Down
5 changes: 3 additions & 2 deletions providers/f5/f5_bigip.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,10 @@ func (*F5BigIPHandler) GetLBConfigs() ([]model.LBConfig, error) {
logrus.Errorf("f5 GetLBConfigs: Error listing f5 virtual servers: %v\n", err)
return lbConfigs, err
}

logrus.Debugf("f5 GetLBConfigs: virtual servers %v", vServers.VirtualServers)
for _, vServer := range vServers.VirtualServers {
if vServer.Pool != "" {

logrus.Debugf("f5 GetLBConfigs: vServer.Pool %v", vServer.Pool)
pool, err := client.GetPool(strings.TrimPrefix(vServer.Pool, "/Common/"))
if err != nil {
logrus.Errorf("f5 GetLBConfigs: Error getting the pool: %s, err: %v\n", vServer.Pool, err)
Expand Down Expand Up @@ -306,6 +306,7 @@ func (*F5BigIPHandler) GetLBConfigs() ([]model.LBConfig, error) {
}

func (*F5BigIPHandler) TestConnection() (bool, error) {
logrus.Debugf("f5 TestConnection check")
_, err := client.VirtualServers()
if err != nil {
logrus.Errorf("f5 TestConnection: Error listing f5 virtual servers: %v\n", err)
Expand Down

0 comments on commit 1b6d58b

Please sign in to comment.