Adding logging when there is a client error.
This commit is contained in:
parent
0bb23cec71
commit
acc54c1015
1 changed files with 4 additions and 0 deletions
4
retry.go
4
retry.go
|
@ -152,6 +152,10 @@ func (r *realisClient) thriftCallWithRetries(thriftCall auroraThriftCall) (*auro
|
|||
// Check if our thrift call is returning an error. This is a retriable event as we don't know
|
||||
// if it was caused by network issues.
|
||||
if clientErr != nil {
|
||||
|
||||
// Print out the error to the user
|
||||
r.logger.Println(clientErr)
|
||||
|
||||
r.ReestablishConn()
|
||||
|
||||
// In the future, reestablish connection should be able to check if it is actually possible
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue