Skip to content

Commit

Permalink
coordinator: fix formatters in slog.Error calls
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Jan 9, 2024
1 parent 6ca34da commit ff6a434
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coordinator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}()

Expand Down
2 changes: 1 addition & 1 deletion internal/attestation/snp/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}()

Expand Down

0 comments on commit ff6a434

Please sign in to comment.