mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
backport of commit bc64648e89 (#23610)
Co-authored-by: Peter Wilson <peter.wilson@hashicorp.com>
This commit is contained in:
committed by
GitHub
parent
82642c4683
commit
4ab5192dea
@@ -216,9 +216,9 @@ func (a *AuditBroker) LogRequest(ctx context.Context, in *logical.LogInput, head
|
||||
|
||||
e.Data = in
|
||||
|
||||
_, err = a.broker.Send(ctx, eventlogger.EventType(event.AuditType.String()), e)
|
||||
status, err := a.broker.Send(ctx, eventlogger.EventType(event.AuditType.String()), e)
|
||||
if err != nil {
|
||||
retErr = multierror.Append(retErr, err)
|
||||
retErr = multierror.Append(retErr, multierror.Append(err, status.Warnings...))
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -297,9 +297,9 @@ func (a *AuditBroker) LogResponse(ctx context.Context, in *logical.LogInput, hea
|
||||
|
||||
e.Data = in
|
||||
|
||||
_, err = a.broker.Send(ctx, eventlogger.EventType(event.AuditType.String()), e)
|
||||
status, err := a.broker.Send(ctx, eventlogger.EventType(event.AuditType.String()), e)
|
||||
if err != nil {
|
||||
retErr = multierror.Append(retErr, err)
|
||||
retErr = multierror.Append(retErr, multierror.Append(err, status.Warnings...))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user