mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
audit/file: use JSON formatter to write output
This commit is contained in:
@@ -35,8 +35,8 @@ func (b *Backend) LogRequest(auth *logical.Auth, req *logical.Request) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// TODO
|
||||
return nil
|
||||
var format audit.FormatJSON
|
||||
return format.FormatRequest(b.f, auth, req)
|
||||
}
|
||||
|
||||
func (b *Backend) LogResponse(
|
||||
@@ -48,8 +48,8 @@ func (b *Backend) LogResponse(
|
||||
return err
|
||||
}
|
||||
|
||||
// TODO
|
||||
return nil
|
||||
var format audit.FormatJSON
|
||||
return format.FormatResponse(b.f, auth, req, resp, err)
|
||||
}
|
||||
|
||||
func (b *Backend) open() error {
|
||||
|
||||
Reference in New Issue
Block a user