Skip to content

Commit

Permalink
Put received cycle data behind verbose flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jairajdev committed May 8, 2024
1 parent 199f869 commit 406b012
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Data/Data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,7 @@ export function collectCycleData(
saved: false,
senderNodes: [senderInfo],
}
// Logger.mainLogger.debug(
// 'Different Cycle Record received',
// cycle.counter,
// receivedCycleTracker[cycle.counter]
// )
if (config.VERBOSE) Logger.mainLogger.debug('Different Cycle Record received', cycle.counter)
}
} else {
if (!validateCycleData(cycle)) continue
Expand All @@ -376,7 +372,8 @@ export function collectCycleData(
},
}
}
// Logger.mainLogger.debug('Cycle received', cycle.counter, receivedCycleTracker)
if (config.VERBOSE)
Logger.mainLogger.debug('Cycle received', cycle.counter, receivedCycleTracker[cycle.counter])
const minCycleConfirmations =
Math.min(Math.ceil(NodeList.getActiveNodeCount() / currentConsensusRadius), 5) || 1

Expand Down

0 comments on commit 406b012

Please sign in to comment.