From ebc1eb0e31c4ed797b257412b84bd9a0050bfe27 Mon Sep 17 00:00:00 2001 From: Ares <75481906+ice-ares@users.noreply.github.com> Date: Tue, 28 Nov 2023 16:43:05 +0200 Subject: [PATCH] update the cfg logging to be more specific to avoid leaking sensitive info --- tokenomics/tokenomics.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tokenomics/tokenomics.go b/tokenomics/tokenomics.go index 1795464..b2a5d6d 100644 --- a/tokenomics/tokenomics.go +++ b/tokenomics/tokenomics.go @@ -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 }