Skip to content

Commit

Permalink
update the cfg logging to be more specific to avoid leaking sensitive…
Browse files Browse the repository at this point in the history
… info
  • Loading branch information
ice-ares committed Nov 28, 2023
1 parent 8470258 commit ebc1eb0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tokenomics/tokenomics.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,13 @@ func StartProcessor(ctx context.Context, cancel context.CancelFunc) Processor {
prc.extraBonusStartDate = extrabonusnotifier.MustGetExtraBonusStartDate(ctx, prc.db)
prc.extraBonusIndicesDistribution = extrabonusnotifier.MustGetExtraBonusIndicesDistribution(ctx, prc.db)
prc.livenessLoadDistributionStartDate = mustGetLivenessLoadDistributionStartDate(ctx, prc.db)
log.Info(fmt.Sprintf("configuration loaded: %#v", cfg))
log.Info(fmt.Sprintf("configuration loaded[livenessLoadDistributionStartDate]: %#v", prc.livenessLoadDistributionStartDate))
log.Info(fmt.Sprintf("configuration loaded[LivenessDelay]: %#v", cfg.KYC.LivenessDelay))
log.Info(fmt.Sprintf("configuration loaded[AdoptionMilestoneSwitch]: %#v", cfg.AdoptionMilestoneSwitch))
log.Info(fmt.Sprintf("configuration loaded[ExtraBonuses]: %#v", cfg.ExtraBonuses))
log.Info(fmt.Sprintf("configuration loaded[RollbackNegativeMining]: %#v", cfg.RollbackNegativeMining))
log.Info(fmt.Sprintf("configuration loaded[MiningSessionDuration]: %#v", cfg.MiningSessionDuration))
log.Info(fmt.Sprintf("configuration loaded[GlobalAggregationInterval]: %#v", cfg.GlobalAggregationInterval))

return prc
}
Expand Down

0 comments on commit ebc1eb0

Please sign in to comment.