Skip to content

Commit

Permalink
Fix WAL debug log line (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhjp committed Oct 21, 2021
1 parent e86105e commit 4148c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,14 +354,14 @@ func (b *backend) setStaticAccountPassword(ctx context.Context, s logical.Storag
if err != nil {
return output, err
}
b.Logger().Debug("writing WAL", "role", input.RoleName, "WAL ID", output.WALID)
output.WALID, err = framework.PutWAL(ctx, s, staticWALKey, &setCredentialsWAL{
RoleName: input.RoleName,
Username: input.Role.StaticAccount.Username,
DN: input.Role.StaticAccount.DN,
NewPassword: newPassword,
LastVaultRotation: input.Role.StaticAccount.LastVaultRotation,
})
b.Logger().Debug("wrote WAL", "role", input.RoleName, "WAL ID", output.WALID)
if err != nil {
return output, errwrap.Wrapf("error writing WAL entry: {{err}}", err)
}
Expand Down

0 comments on commit 4148c97

Please sign in to comment.