Skip to content

Commit

Permalink
- Change info to warn
Browse files Browse the repository at this point in the history
- Exponential back off for sleep
  • Loading branch information
jakeschuurmans committed Nov 7, 2024
1 parent 5aea136 commit 2064ac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/bioscfg/bioscfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ func (bc *BiosCfg) initNats(ctx context.Context) error {
}

bc.logger.Error(err)
bc.logger.Infof("Attempt %d of %d failed. Trying again . . .", i, retries)
time.Sleep(time.Second)
bc.logger.Warnf("Attempt %d of %d failed. Trying again . . .", i, retries)
time.Sleep(time.Duration(i) * time.Second)
}

return err
Expand Down

0 comments on commit 2064ac9

Please sign in to comment.