Make this log message less noisy (#285)

* make this log message less noisy

* build

Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
This commit is contained in:
Jayant Krishnamurthy 2022-09-21 11:06:13 -07:00 committed by GitHub
parent c32f2d99b9
commit 71a6ae687e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 10 deletions

View File

@ -82,20 +82,14 @@ export class WebSocketAPI {
return; return;
} }
const clients: Set<WebSocket> = this.priceFeedClients.get(priceInfo.priceFeed.id)!;
logger.info( logger.info(
`Sending ${priceInfo.priceFeed.id} price update to ${ `Sending ${priceInfo.priceFeed.id} price update to ${
this.priceFeedClients.get(priceInfo.priceFeed.id)!.size clients.size
} clients` } clients: ${Array.from(clients.values()).map((ws, _idx, _arr) => this.wsId.get(ws))}`
); );
for (let client of this.priceFeedClients for (let client of clients.values()) {
.get(priceInfo.priceFeed.id)!
.values()) {
logger.info(
`Sending ${
priceInfo.priceFeed.id
} price update to client ${this.wsId.get(client)}`
);
this.promClient?.addWebSocketInteraction("server_update", "ok"); this.promClient?.addWebSocketInteraction("server_update", "ok");
let verbose = this.priceFeedClientsVerbosity let verbose = this.priceFeedClientsVerbosity