访问日志实现记录requestBody

This commit is contained in:
GoEdgeLab
2021-12-07 14:57:55 +08:00
parent 48f7fc03cb
commit d758258bd9
2 changed files with 6 additions and 1 deletions

View File

@@ -13,5 +13,6 @@ func (this *HTTPAccessLog) ToPB() (*pb.HTTPAccessLog, error) {
return nil, err
}
p.RequestId = this.RequestId
p.RequestBody = []byte(this.RequestBody)
return p, nil
}