1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-20 03:17:04 +00:00

accesslog: Timestamp to unix milliseconds instead of seconds

relative to https://github.com/kataras/iris/issues/1601#issuecomment-690868305
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-09-11 07:51:24 +03:00
parent 16a794a245
commit 0f5ec75d54
3 changed files with 40 additions and 14 deletions

View File

@@ -553,7 +553,7 @@ func (ac *AccessLog) Print(ctx *context.Context, latency time.Duration, timeForm
log.Logger = ac
log.Now = now
log.TimeFormat = timeFormat
log.Timestamp = now.Unix()
log.Timestamp = now.UnixNano() / 1000000
log.Latency = latency
log.Method = method
log.Path = path