From b68a9955d2e2d705400fe74ab6a2087aed6f16c5 Mon Sep 17 00:00:00 2001 From: miampf Date: Wed, 20 Mar 2024 14:14:29 +0100 Subject: [PATCH] print measurement as hex --- joinservice/internal/watcher/validator.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/joinservice/internal/watcher/validator.go b/joinservice/internal/watcher/validator.go index 6bf43635ee..b9a9994455 100644 --- a/joinservice/internal/watcher/validator.go +++ b/joinservice/internal/watcher/validator.go @@ -14,6 +14,7 @@ import ( "log/slog" "path/filepath" "sync" + "encoding/hex" "github.com/edgelesssys/constellation/v2/internal/atls" "github.com/edgelesssys/constellation/v2/internal/attestation/choose" @@ -79,7 +80,7 @@ func (u *Updatable) Update() error { if err != nil { return fmt.Errorf("unmarshaling config: %w", err) } - u.log.Debug(fmt.Sprintf("New expected measurements: %+v", cfg.GetMeasurements())) + u.log.Debug(fmt.Sprintf("New expected measurements: 0x%s", hex.encodeToString(cfg.GetMeasurements()))) cfgWithCerts, err := u.configWithCerts(cfg) if err != nil {