grpc-js-xds: interop client: reduce periodic logging

This commit is contained in:
Michael Lumish 2023-09-11 17:32:41 -07:00
parent e570a99d6d
commit 57c1bd2ede
1 changed files with 5 additions and 3 deletions

View File

@ -467,9 +467,11 @@ function sendConstantQps(client: TestServiceClient, qps: number, failOnFailedRpc
makeSingleRequest(client, callType, failOnFailedRpcs, callStatsTracker, callStartTimestampsTrackers[callType]);
}
}, 1000/qps);
setInterval(() => {
console.log(`Accumulated stats: ${JSON.stringify(accumulatedStats, undefined, 2)}`);
}, 1000);
if (VERBOSITY >= 2) {
setInterval(() => {
console.log(`Accumulated stats: ${JSON.stringify(accumulatedStats, undefined, 2)}`);
}, 1000);
}
}
const callTypeEnumMap = {