Skip to content

Commit

Permalink
Print host when reporting ping error
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksej-paschenko committed Dec 14, 2023
1 parent b9667f5 commit ac3b4ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liteclient/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (c *Connection) ping() {
}
err = c.Send(p)
if err != nil && IsNotConnectedYet(err) {
fmt.Printf("ping error: %v\n", err)
fmt.Printf("%s ping error: %v\n", c.host, err)
continue
}
}
Expand Down

0 comments on commit ac3b4ac

Please sign in to comment.