Skip to content

Commit

Permalink
Single warning line
Browse files Browse the repository at this point in the history
  • Loading branch information
tiger5226 committed Jan 24, 2020
1 parent 9589d86 commit 4af0cf5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/storage/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ func (c *Connection) Connect() error {
break
}
secondsToWait := i + 1
c.logger.Log().Warning("Database Connection Err: ", err)
c.logger.Log().Warningf("Attempt %d - could not connect to database...retry in %d seconds", i, secondsToWait)
c.logger.Log().Warningf("Attempt %d - could not connect to database...retry in %d seconds: %s", i, secondsToWait, err)
time.Sleep(time.Duration(secondsToWait) * time.Second)
}

Expand Down

0 comments on commit 4af0cf5

Please sign in to comment.