fix bug of init time

This commit is contained in:
zhongchao
2022-03-02 18:01:53 +08:00
parent ce09c619b8
commit 1820610e42
3 changed files with 10 additions and 9 deletions

View File

@@ -1,16 +1,17 @@
package com.mogo.eagle.core.function.call.devatools
import com.alibaba.android.arouter.launcher.ARouter
import com.mogo.eagle.core.data.chain.ChainLogParam
import com.mogo.eagle.core.data.constants.MogoServicePaths.PATH_DEVA_TOOLS
import com.mogo.eagle.core.data.constants.MogoServicePaths
import com.mogo.eagle.core.function.api.devatools.IDevaToolsProvider
import com.mogo.eagle.core.utilcode.util.SnackbarUtils
import com.mogo.eagle.core.function.call.base.CallerBase
object CallerDevaToolsManager {
private val devaToolsProviderApi: IDevaToolsProvider
get() = ARouter.getInstance().build(PATH_DEVA_TOOLS)
.navigation() as IDevaToolsProvider
get() = CallerBase.getApiInstance(
IDevaToolsProvider::class.java,
MogoServicePaths.PATH_DEVA_TOOLS
)
/**
* 开始抓取全量日志
@@ -23,7 +24,7 @@ object CallerDevaToolsManager {
* 开始抓取全量日志
* duration 分钟数
*/
fun startCatchLog(duration: Int){
fun startCatchLog(duration: Int) {
devaToolsProviderApi.startLogCatch(duration)
}
@@ -44,7 +45,7 @@ object CallerDevaToolsManager {
/**
* 获取链路节点信息
*/
fun getTraceInfo():HashMap<Int, ChainLogParam>{
fun getTraceInfo(): HashMap<Int, ChainLogParam> {
return devaToolsProviderApi.getTraceInfo()
}
}