Skip to content

Commit

Permalink
fix: fix log statement
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenschneider committed Sep 10, 2023
1 parent 0abdc46 commit 43a2b4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions internal/config/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ func TestAcmeVaultServerConfig_Validate(t *testing.T) {
Kv2MountPath: "secret",
AwsMountPath: "custom-aws-mountpath",
AwsRole: "my-custom-role",
SecretId: "secret-id",
RoleId: "role",
},
AcmeEmail: "ac@me.com",
AcmeUrl: letsEncryptUrl,
Expand Down
2 changes: 1 addition & 1 deletion pkg/certstorage/vault/auth_implicit.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (t *ImplicitAuth) getToken() (string, error) {
if err == nil {
return string(read), nil
}
log.Warn().Msgf("Specified token file could not be read: %w", tokenFile)
log.Warn().Msgf("Specified token file %s could not be read: %w", tokenFile, err)

Check failure on line 62 in pkg/certstorage/vault/auth_implicit.go

View workflow job for this annotation

GitHub Actions / test

(*github.com/rs/zerolog.Event).Msgf does not support error-wrapping directive %w

Check failure on line 62 in pkg/certstorage/vault/auth_implicit.go

View workflow job for this annotation

GitHub Actions / lint

printf: (*github.com/rs/zerolog.Event).Msgf does not support error-wrapping directive %w (govet)
errs = multierr.Append(errs, err)
}

Expand Down

0 comments on commit 43a2b4a

Please sign in to comment.