change: replace log duration in miliseconds

This commit is contained in:
lilong.129
2023-08-14 21:36:33 +08:00
parent aa5692ba0b
commit 521462f362
4 changed files with 9 additions and 9 deletions

View File

@@ -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")
}()

View File

@@ -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
}