[6.4.0][全量日志] 上传入口添加时间段选择

This commit is contained in:
renwj
2024-04-12 16:23:16 +08:00
parent 119f28d6ce
commit bcf36bb8ed
3 changed files with 91 additions and 21 deletions

View File

@@ -211,8 +211,8 @@ internal class MoGoLogRecordProviderImpl: IMoGoLogRecordProvider,
return LogcatManager.export()
}
override fun upload(): Unit = runBlocking {
val state = LogcatManager.upload(0, System.currentTimeMillis())
override fun upload(startTime: Long, endTime: Long): Unit = runBlocking {
val state = LogcatManager.upload(startTime, endTime)
if (state is UploadError) {
throw AssertionError(state.toString())
}