Skip to content

Commit

Permalink
chore: move some logging to debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Sep 28, 2024
1 parent b84d27b commit 8ce45d2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/tasks/payouts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);

Expand Down

0 comments on commit 8ce45d2

Please sign in to comment.