mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-28 10:09:54 +08:00
发布v2.11.5版本,更新内容请查看:https://github.com/bufanyun/hotgo/blob/v2.0/docs/guide-zh-CN/start-update-log.md
This commit is contained in:
@@ -27,7 +27,7 @@ func (s *sHook) accessLog(r *ghttp.Request) {
|
||||
}
|
||||
|
||||
contexts.SetDataMap(ctx, g.Map{
|
||||
"request.takeUpTime": gtime.TimestampMilli() - r.EnterTime,
|
||||
"request.takeUpTime": gtime.Now().Sub(gtime.New(r.EnterTime)).Milliseconds(),
|
||||
// ...
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user