Skip to content

Commit

Permalink
Log Client connection errors. (btcsuite#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Feb 7, 2017
1 parent a1200f5 commit 05e9423
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions infrastructure.go
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,7 @@ func (c *Client) Connect(tries int) error {
var wsConn *websocket.Conn
wsConn, err = dial(c.config)
if err != nil {
log.Errorf("Connection attempt failed: %v", err)
backoff = connectionRetryInterval * time.Duration(i+1)
if backoff > time.Minute {
backoff = time.Minute
Expand Down

0 comments on commit 05e9423

Please sign in to comment.