From 2c3a4c7eb9a944ccbd14023842a79b1c05aaae99 Mon Sep 17 00:00:00 2001 From: dydxwill <119354122+dydxwill@users.noreply.github.com> Date: Wed, 12 Jun 2024 15:57:56 -0400 Subject: [PATCH] Rm dbg logs (#1685) --- .../socks/src/lib/message-forwarder.ts | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/indexer/services/socks/src/lib/message-forwarder.ts b/indexer/services/socks/src/lib/message-forwarder.ts index 5d928ed697..735855ab66 100644 --- a/indexer/services/socks/src/lib/message-forwarder.ts +++ b/indexer/services/socks/src/lib/message-forwarder.ts @@ -165,13 +165,13 @@ export class MessageForwarder { if (!this.subscriptions.subscriptions[message.channel] && !this.subscriptions.batchedSubscriptions[message.channel]) { - logger.debug({ - at: 'message-forwarder#forwardMessage', - message: 'No clients to forward to', - messageId: message.id, - messageChannel: message.channel, - contents: message.contents, - }); + // logger.debug({ + // at: 'message-forwarder#forwardMessage', + // message: 'No clients to forward to', + // messageId: message.id, + // messageChannel: message.channel, + // contents: message.contents, + // }); return; } @@ -182,21 +182,21 @@ export class MessageForwarder { } let forwardedToSubscribers: boolean = false; - if (subscriptions.length > 0) { - if (message.channel !== Channel.V4_ORDERBOOK || - ( - // Don't log orderbook messages unless enabled - message.channel === Channel.V4_ORDERBOOK && config.ENABLE_ORDERBOOK_LOGS - ) - ) { - logger.debug({ - at: 'message-forwarder#forwardMessage', - message: 'Forwarding message to clients..', - messageContents: message, - connectionIds: subscriptions.map((s: SubscriptionInfo) => s.connectionId), - }); - } - } + // if (subscriptions.length > 0) { + // if (message.channel !== Channel.V4_ORDERBOOK || + // ( + // // Don't log orderbook messages unless enabled + // message.channel === Channel.V4_ORDERBOOK && config.ENABLE_ORDERBOOK_LOGS + // ) + // ) { + // logger.debug({ + // at: 'message-forwarder#forwardMessage', + // message: 'Forwarding message to clients..', + // messageContents: message, + // connectionIds: subscriptions.map((s: SubscriptionInfo) => s.connectionId), + // }); + // } + // } // Buffer messages if the subscription is for batched messages if (this.subscriptions.batchedSubscriptions[message.channel] &&