audit/file: use JSON formatter to write output
This commit is contained in:
parent
358845053b
commit
ef95d9a10e
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue