From 9081dfb68d7ed067d88960d42936694b22e166e7 Mon Sep 17 00:00:00 2001 From: hasheddan Date: Tue, 12 May 2020 09:57:39 -0500 Subject: [PATCH] Improve error messages in agnhost/guestbook This updates the error messages when registering a node to be more explicit about what error occurred and how long it will wait to retry. Signed-off-by: hasheddan --- test/images/agnhost/guestbook/guestbook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/images/agnhost/guestbook/guestbook.go b/test/images/agnhost/guestbook/guestbook.go index ab783517dd5..42e8a015992 100644 --- a/test/images/agnhost/guestbook/guestbook.go +++ b/test/images/agnhost/guestbook/guestbook.go @@ -84,14 +84,14 @@ func registerNode(registerTo, port string) { for time.Since(start) < timeout { _, err := net.ResolveTCPAddr("tcp", hostPort) if err != nil { - log.Printf("--slaveof param and/or --backend-port param are invalid. %v. Retrying in 1 second.", err) + log.Printf("unable to resolve %s, --slaveof param and/or --backend-port param are invalid: %v. Retrying in %s.", hostPort, err, sleep) time.Sleep(sleep) continue } response, err := dialHTTP(request, hostPort) if err != nil { - log.Printf("encountered error while registering to master: %v. Retrying in 1 second.", err) + log.Printf("encountered error while registering to master: %v. Retrying in %s.", err, sleep) time.Sleep(sleep) continue }