Skip to content

Commit

Permalink
print measurement as hex
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Mar 20, 2024
1 parent de6321d commit b68a995
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion joinservice/internal/watcher/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit b68a995

Please sign in to comment.