mirror of
https://github.com/kataras/iris.git
synced 2026-01-04 18:57:03 +00:00
Add example for custom fast Accesslog Formatter
This commit is contained in:
@@ -631,7 +631,7 @@ func (ac *AccessLog) after(ctx *context.Context, lat time.Duration, method, path
|
||||
requestData, err := ctx.GetBody()
|
||||
requestBodyLength := len(requestData)
|
||||
if ac.BytesReceivedBody {
|
||||
bytesReceived = requestBodyLength // store it, if the total is enabled then this will be overriden.
|
||||
bytesReceived = requestBodyLength // store it, if the total is enabled then this will be overridden.
|
||||
}
|
||||
if err != nil && ac.RequestBody {
|
||||
requestBody = ac.getErrorText(err)
|
||||
|
||||
Reference in New Issue
Block a user