Remove temporary debug log line

This commit is contained in:
Michael Lumish 2021-03-30 13:26:42 -07:00
parent 17f72d34b9
commit a907086be4

View File

@ -338,14 +338,9 @@ class XdsResolver implements Resolver {
this.clusterRefcounts.set(name, {inLastConfig: true, refCount: 0});
}
}
let configSelectorLogCounter = 0;
const configSelector: ConfigSelector = (methodName, metadata) => {
for (const {matcher, action} of matchList) {
if (matcher.apply(methodName, metadata)) {
// 37 is coprime with most relevant numbers
if (configSelectorLogCounter % 37 === 0) {
trace('Call with method ' + methodName + ' and metadata ' + JSON.stringify(metadata.getMap(), undefined, 2) + ' matched ' + matcher.toString());
}
const clusterName = action.getCluster();
this.refCluster(clusterName);
const onCommitted = () => {