Skip to content

Commit

Permalink
test(scaling-large-messages): hide debug logs
Browse files Browse the repository at this point in the history
The message is quite large, making it hard to read the logs in debug
mode.
  • Loading branch information
mkermani144 committed Jun 26, 2024
1 parent 8d1116f commit 0f0d972
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/scaling-large-messages/src/node/node.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { createRoseNetNode } from '@rosen-bridge/rosenet-node';

const node = await createRoseNetNode({
logger: console,
logger: {
...console,
debug: () => {},
},
relayMultiaddrs: [process.env.RELAY_MULTIADDR!],
privateKey: process.env.PRIVATE_KEY!,
});
Expand Down Expand Up @@ -51,7 +54,9 @@ setTimeout(async () => {
}, 10_000);
}, 30_000);

node.handleIncomingMessage(async () => {});
node.handleIncomingMessage(async (_, message) => {
console.info(`Large message received, length: ${message?.length}`);
});

node.subscribe('rosenet-news', (message) => {
console.info(
Expand Down

0 comments on commit 0f0d972

Please sign in to comment.