Skip to content

Commit 71a6ae6

Browse files
jayantkJayant Krishnamurthy
andauthored
Make this log message less noisy (#285)
* make this log message less noisy * build Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
1 parent c32f2d9 commit 71a6ae6

File tree

1 file changed

+4
-10
lines changed
  • third_party/pyth/price-service/src

1 file changed

+4
-10
lines changed

third_party/pyth/price-service/src/ws.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,14 @@ export class WebSocketAPI {
8282
return;
8383
}
8484

85+
const clients: Set<WebSocket> = this.priceFeedClients.get(priceInfo.priceFeed.id)!;
8586
logger.info(
8687
`Sending ${priceInfo.priceFeed.id} price update to ${
87-
this.priceFeedClients.get(priceInfo.priceFeed.id)!.size
88-
} clients`
88+
clients.size
89+
} clients: ${Array.from(clients.values()).map((ws, _idx, _arr) => this.wsId.get(ws))}`
8990
);
9091

91-
for (let client of this.priceFeedClients
92-
.get(priceInfo.priceFeed.id)!
93-
.values()) {
94-
logger.info(
95-
`Sending ${
96-
priceInfo.priceFeed.id
97-
} price update to client ${this.wsId.get(client)}`
98-
);
92+
for (let client of clients.values()) {
9993
this.promClient?.addWebSocketInteraction("server_update", "ok");
10094

10195
let verbose = this.priceFeedClientsVerbosity

0 commit comments

Comments
 (0)