From 4d07dd9e32e2f81de192ab5dda08d9f2187c0cd6 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 10 Oct 2024 09:02:42 -0700 Subject: [PATCH] fix(f3): improve log messages 1. Change Restarting -> Renewing. Restarting sounds like something is going wrong. 2. Fix spelling of rechecking. --- node/modules/storageminer.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node/modules/storageminer.go b/node/modules/storageminer.go index 63e9f70a0c6..46c0fa4e979 100644 --- a/node/modules/storageminer.go +++ b/node/modules/storageminer.go @@ -405,7 +405,7 @@ func (p *f3Participator) participate(ctx context.Context) error { return ctx.Err() } } - log.Info("Restarting F3 participation") + log.Info("Renewing F3 participation") } return ctx.Err() } @@ -506,11 +506,11 @@ func (p *f3Participator) awaitLeaseExpiry(ctx context.Context, lease api.F3Parti log.Errorw("Failed to check F3 progress while awaiting lease expiry. Retrying after backoff.", "attempts", p.backoff.Attempt(), "backoff", p.backoff.Duration(), "err", err) p.backOff(ctx) case progress.ID+2 >= lease.FromInstance+lease.ValidityTerm: - log.Infof("F3 progressed (%d) to within two instances of lease expiry (%d+%d). Restarting participation.", progress.ID, lease.FromInstance, lease.ValidityTerm) + log.Infof("F3 progressed (%d) to within two instances of lease expiry (%d+%d). Renewing participation.", progress.ID, lease.FromInstance, lease.ValidityTerm) return nil default: remainingInstanceLease := lease.ValidityTerm - progress.ID - log.Debugf("F3 participation lease is valid for further %d instances. Recking after %s.", remainingInstanceLease, p.checkProgressInterval) + log.Debugf("F3 participation lease is valid for further %d instances. Re-checking after %s.", remainingInstanceLease, p.checkProgressInterval) p.backOffFor(ctx, p.checkProgressInterval) } }