Skip to content

Commit

Permalink
accounts: log success in refillAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Nov 6, 2024
1 parent 101ec52 commit 1b506ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/worker/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 1b506ab

Please sign in to comment.