mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
compatible with go1.12
This commit is contained in:
@@ -23,7 +23,7 @@ func EsLog(ctx context.Context, esClient *elastic.Client) gin.HandlerFunc {
|
||||
// 结束时间
|
||||
end := time.Now()
|
||||
//执行时间
|
||||
latency := strconv.FormatInt(int64(end.Sub(start).Milliseconds()), 10)
|
||||
latency := strconv.FormatInt(end.Sub(start).Nanoseconds()/1000, 10)
|
||||
path := c.Request.URL.Path
|
||||
|
||||
clientIP := c.ClientIP()
|
||||
|
||||
Reference in New Issue
Block a user