From 66424f9b4fd21fdf646b53a7afd8e63e90e25786 Mon Sep 17 00:00:00 2001 From: Simon Ott Date: Thu, 7 Dec 2023 11:49:03 +0000 Subject: [PATCH] testtool: log messages Signed-off-by: Simon Ott --- testtool/internal.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/testtool/internal.go b/testtool/internal.go index 9ebb5bad..306e3799 100644 --- a/testtool/internal.go +++ b/testtool/internal.go @@ -280,12 +280,16 @@ func publishResultAsync(addr string, result *ar.VerificationResult, wg *sync.Wai func publishResult(addr string, result *ar.VerificationResult) { - log.Tracef("Publishing result to %v", addr) - if result.Prover == "" { log.Trace("Will not publish result: prover is empty (this happens if connection could not be established)") return } + if addr == "" { + log.Trace("Will not publish: no address specified") + return + } + + log.Tracef("Publishing result to '%v'", addr) data, err := json.Marshal(*result) if err != nil {