From b3a11bccd3052312fd83485413902915cc1b61a0 Mon Sep 17 00:00:00 2001 From: tvojacek Date: Wed, 10 Nov 2021 10:37:58 +0100 Subject: [PATCH] log error if ConnectRetry is enabled --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 11d04de..8ec3f24 100644 --- a/client.go +++ b/client.go @@ -282,7 +282,7 @@ func (c *client) Connect() Token { conn, rc, t.sessionPresent, err = c.attemptConnection() if err != nil { if c.options.ConnectRetry { - DEBUG.Println(CLI, "Connect failed, sleeping for", int(c.options.ConnectRetryInterval.Seconds()), "seconds and will then retry") + DEBUG.Println(CLI, "Connect failed, sleeping for", int(c.options.ConnectRetryInterval.Seconds()), "seconds and will then retry, error:", err.Error()) time.Sleep(c.options.ConnectRetryInterval) if atomic.LoadUint32(&c.status) == connecting {