1
0
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:
Gerasimos (Makis) Maropoulos
2020-09-14 02:35:01 +03:00
parent 7113165cb8
commit 54a095c23f
3 changed files with 138 additions and 8 deletions

View File

@@ -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)