From acc54c101567e2a0db55f8c16b075dbb9c51dc9d Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Mon, 5 Mar 2018 11:20:39 -0800 Subject: [PATCH] Adding logging when there is a client error. --- retry.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/retry.go b/retry.go index 586b60c..0e783f3 100644 --- a/retry.go +++ b/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