Skip to content

Commit 57c1bd2

Browse files
committed
grpc-js-xds: interop client: reduce periodic logging
1 parent e570a99 commit 57c1bd2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/grpc-js-xds/interop/xds-interop-client.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,9 +467,11 @@ function sendConstantQps(client: TestServiceClient, qps: number, failOnFailedRpc
467467
makeSingleRequest(client, callType, failOnFailedRpcs, callStatsTracker, callStartTimestampsTrackers[callType]);
468468
}
469469
}, 1000/qps);
470-
setInterval(() => {
471-
console.log(`Accumulated stats: ${JSON.stringify(accumulatedStats, undefined, 2)}`);
472-
}, 1000);
470+
if (VERBOSITY >= 2) {
471+
setInterval(() => {
472+
console.log(`Accumulated stats: ${JSON.stringify(accumulatedStats, undefined, 2)}`);
473+
}, 1000);
474+
}
473475
}
474476

475477
const callTypeEnumMap = {

0 commit comments

Comments
 (0)