Add response warnings to audit logs (#6386)

This commit is contained in:
Jeff Mitchell 2019-03-08 16:42:14 -05:00 committed by Brian Kassouf
parent d2beb6e312
commit 1d39e69d73
1 changed files with 2 additions and 0 deletions

View File

@ -371,6 +371,7 @@ func (f *AuditFormatter) FormatResponse(ctx context.Context, w io.Writer, config
Auth: respAuth,
Secret: respSecret,
Data: resp.Data,
Warnings: resp.Warnings,
Redirect: resp.Redirect,
WrapInfo: respWrapInfo,
Headers: resp.Headers,
@ -426,6 +427,7 @@ type AuditResponse struct {
Auth *AuditAuth `json:"auth,omitempty"`
Secret *AuditSecret `json:"secret,omitempty"`
Data map[string]interface{} `json:"data,omitempty"`
Warnings []string `json:"warnings,omitempty"`
Redirect string `json:"redirect,omitempty"`
WrapInfo *AuditResponseWrapInfo `json:"wrap_info,omitempty"`
Headers map[string][]string `json:"headers"`