From ff6a434d2726ad50e2815f24cfdd245a4c5d83e1 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Mon, 8 Jan 2024 17:56:59 +0100 Subject: [PATCH] coordinator: fix formatters in slog.Error calls Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- coordinator/main.go | 2 +- internal/attestation/snp/validator.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coordinator/main.go b/coordinator/main.go index 652e9ea39..bca49b91c 100644 --- a/coordinator/main.go +++ b/coordinator/main.go @@ -46,7 +46,7 @@ func run() (retErr error) { logger.Info("Coordinator API listening") if err := coordS.Serve(net.JoinHostPort("0.0.0.0", coordapi.Port)); err != nil { // TODO: collect error using errgroup. - logger.Error("Coordinator API failed to serve: %w", err) + logger.Error("Coordinator API failed to serve", "err", err) } }() diff --git a/internal/attestation/snp/validator.go b/internal/attestation/snp/validator.go index 1221eb0e2..4c4cd1ff1 100644 --- a/internal/attestation/snp/validator.go +++ b/internal/attestation/snp/validator.go @@ -77,7 +77,7 @@ func (v *Validator) Validate(ctx context.Context, attDocRaw []byte, nonce []byte v.logger.Info("Validate called", "nonce", hex.EncodeToString(nonce)) defer func() { if err != nil { - v.logger.Error("Failed to validate attestation document: %s", err) + v.logger.Error("Failed to validate attestation document", "err", err) } }()