Skip to content

Commit

Permalink
Rm dbg logs (#1685)
Browse files Browse the repository at this point in the history
  • Loading branch information
dydxwill authored Jun 12, 2024
1 parent 444676f commit 2c3a4c7
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions indexer/services/socks/src/lib/message-forwarder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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] &&
Expand Down

0 comments on commit 2c3a4c7

Please sign in to comment.