From 8ce45d2ac4a526dd7d1c4dc307e1c3dc88dda2be Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Sat, 28 Sep 2024 10:49:35 -0400 Subject: [PATCH] chore: move some logging to debug mode --- src/tasks/payouts.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/tasks/payouts.ts b/src/tasks/payouts.ts index de2c81e..a07bdaa 100644 --- a/src/tasks/payouts.ts +++ b/src/tasks/payouts.ts @@ -116,9 +116,12 @@ const runIncentiveProgram = async ( if (response.success) { const peerGenerationHash = response.headers?.["x-generation-hash"]; - console.log( - `Peer ${peerIp} generation hash: ${peerGenerationHash}, expected: ${rootHash}` - ); + + if (Environment.DEBUG) { + console.log( + `Peer ${peerIp} generation hash: ${peerGenerationHash}, expected: ${rootHash}` + ); + } if (peerGenerationHash === rootHash) { console.log(`Peer ${peerIp} has correct generation hash.`);