fix: update interface of recording adb logs

This commit is contained in:
xucong053
2022-09-30 13:45:35 +08:00
parent 6e237429ed
commit 7deff77507
3 changed files with 14 additions and 43 deletions

View File

@@ -68,7 +68,10 @@ func InitUIAClient(device *AndroidDevice) (*DriverExt, error) {
}
if device.LogOn {
err = driverExt.StartLogRecording("hrp_adb_log")
err = driverExt.Driver.StartCaptureLog("hrp_adb_log")
if err != nil {
return nil, err
}
}
return driverExt, err