mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-07 16:59:34 +08:00
change: replace log duration in miliseconds
This commit is contained in:
@@ -396,7 +396,7 @@ func (dExt *DriverExt) DoAction(action MobileAction) error {
|
||||
log.Debug().
|
||||
Str("method", string(action.Method)).
|
||||
Interface("params", action.Params).
|
||||
Float64("elapsed(s)", time.Since(actionStartTime).Seconds()).
|
||||
Int64("elapsed(ms)", time.Since(actionStartTime).Milliseconds()).
|
||||
Msg("uixt action end")
|
||||
}()
|
||||
|
||||
|
||||
@@ -256,7 +256,7 @@ func (s *veDEMImageService) GetImage(imageBuf *bytes.Buffer, options ...interfac
|
||||
log.Debug().
|
||||
Str("X-TT-LOGID", logID).
|
||||
Int("image_bytes", size).
|
||||
Float64("elapsed(s)", elapsed.Seconds()).
|
||||
Int64("elapsed(ms)", elapsed.Milliseconds()).
|
||||
Msg("request OCR service success")
|
||||
break
|
||||
}
|
||||
@@ -379,8 +379,8 @@ func (dExt *DriverExt) GetScreenResult() (screenResult *ScreenResult, err error)
|
||||
dExt.cacheStepData.screenResults[imagePath] = screenResult
|
||||
|
||||
log.Debug().
|
||||
Int64("ScreenshotTakeElapsed", screenResult.ScreenshotTakeElapsed).
|
||||
Int64("ScreenshotCVElapsed", screenResult.ScreenshotCVElapsed).
|
||||
Int64("screenshot_take_elapsed(ms)", screenResult.ScreenshotTakeElapsed).
|
||||
Int64("screenshot_cv_elapsed(ms)", screenResult.ScreenshotCVElapsed).
|
||||
Msg("get screenshot result success")
|
||||
return screenResult, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user