From 1b506ab034a69169e7f5966fb3da591e9f3261b1 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Wed, 6 Nov 2024 13:24:39 +0100 Subject: [PATCH] accounts: log success in refillAccount --- internal/worker/accounts.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/worker/accounts.go b/internal/worker/accounts.go index 4bc1f4253..24c1a0b05 100644 --- a/internal/worker/accounts.go +++ b/internal/worker/accounts.go @@ -351,8 +351,6 @@ func (a *AccountMgr) refillAccounts() { if err != nil && shouldLog { a.logger.Error("failed to refill account for host", zap.Stringer("hostKey", contract.HostKey), zap.Error(err)) - } else if err == nil { - a.logger.Infow("successfully refilled account for host", zap.Stringer("hostKey", contract.HostKey), zap.Error(err)) } }(c) } @@ -409,6 +407,7 @@ func (a *AccountMgr) refillAccount(ctx context.Context, contract api.ContractMet if err != nil { return fmt.Errorf("failed to fund account: %w", err) } + a.logger.Infow("successfully refilled account for host", zap.Stringer("hostKey", contract.HostKey), zap.Error(err)) return nil }