diff --git a/audit/format.go b/audit/format.go index 4df4eaaec..e579df154 100644 --- a/audit/format.go +++ b/audit/format.go @@ -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"`