Adding logging when there is a client error.

This commit is contained in:
Renan DelValle 2018-03-05 11:20:39 -08:00
parent 0bb23cec71
commit acc54c1015
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9

View file

@ -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