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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user