From 872cb003a47f0ffd3b85c4910c2bae823878c3b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Br=C3=A4mer?= Date: Wed, 12 Oct 2022 12:55:41 +0200 Subject: [PATCH] Fix log message (#591) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit printing `seconds` is superfluous since time.Duration already adds the `s` suffix Invalid log message would be ``` Retrying connection in up to 1s seconds ``` Co-authored-by: João Oliveirinha --- supervisor/tunnel.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/supervisor/tunnel.go b/supervisor/tunnel.go index 5e65f3d1..d0a78b04 100644 --- a/supervisor/tunnel.go +++ b/supervisor/tunnel.go @@ -254,8 +254,9 @@ func (e *EdgeTunnelServer) Serve(ctx context.Context, connIndex uint8, protocolF if !ok { return err } + e.config.Observer.SendReconnect(connIndex) - connLog.Logger().Info().Msgf("Retrying connection in up to %s seconds", duration) + connLog.Logger().Info().Msgf("Retrying connection in up to %s", duration) } // Check if the connection error was from an IP issue with the host or