Commit 7bc6f81d authored by Matthias Rampke's avatar Matthias Rampke

Generate dereferenced array of endpoints

for printing. Only do this if verbosity requires it.
parent 06ed262f
...@@ -671,7 +671,13 @@ func accumulateEndpointsMap(endpoints *api.Endpoints, hostname string, ...@@ -671,7 +671,13 @@ func accumulateEndpointsMap(endpoints *api.Endpoints, hostname string,
} }
(*newEndpoints)[svcPort] = append((*newEndpoints)[svcPort], epInfo) (*newEndpoints)[svcPort] = append((*newEndpoints)[svcPort], epInfo)
} }
glog.V(3).Infof("Setting endpoints for %q to %+v", svcPort, (*newEndpoints)[svcPort]) if glog.V(3) {
newEPList := []string{}
for _, ep := range (*newEndpoints)[svcPort] {
newEPList = append(newEPList, ep.endpoint)
}
glog.Infof("Setting endpoints for %q to %+v", svcPort, newEPList)
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment