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:
parent
c32f2d99b9
commit
71a6ae687e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue