From d0a011a6217691c7f466bbaff800ff901d756491 Mon Sep 17 00:00:00 2001 From: Simon Ott Date: Sun, 18 Feb 2024 22:53:50 +0000 Subject: [PATCH] testtool: log attestation errors Signed-off-by: Simon Ott --- testtool/tls.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testtool/tls.go b/testtool/tls.go index b3c32922..0dfdca9e 100644 --- a/testtool/tls.go +++ b/testtool/tls.go @@ -53,6 +53,8 @@ func dialInternalAddr(c *config, api atls.CmcApiSelect, addr string, tlsConf *tl defer wg.Wait() go publishResultAsync(c.Publish, result, wg) } + // Log errors if any + result.PrintErr() }), atls.WithCmc(cmc)) if err != nil { @@ -203,6 +205,8 @@ func listenInternal(c *config, api atls.CmcApiSelect, cmc *cmc.Cmc) { // and result is not empty go publishResult(c.Publish, result) } + // Log errors if any + result.PrintErr() }), atls.WithCmc(cmc)) if err != nil {