append logcatch file name for badcase scene
This commit is contained in:
@@ -35,8 +35,8 @@ class DevaToolsProvider : IDevaToolsProvider {
|
||||
MogoLogCatchManager.startCatchLog()
|
||||
}
|
||||
|
||||
override fun startLogCatch(duration: Int) {
|
||||
MogoLogCatchManager.startCatchLog(duration)
|
||||
override fun startLogCatch(duration: Int, logPrefixName: String?) {
|
||||
MogoLogCatchManager.startCatchLog(duration, logPrefixName)
|
||||
}
|
||||
|
||||
override fun stopLogCatch() {
|
||||
|
||||
@@ -10,12 +10,12 @@ import com.mogo.commons.AbsMogoApplication
|
||||
import com.mogo.commons.debug.DebugConfig
|
||||
import com.mogo.eagle.core.data.app.AppConfigInfo
|
||||
import com.mogo.eagle.core.data.constants.MoGoConfig
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_DEVA
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotManager
|
||||
import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsListenerManager
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.LogLevel
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.Logger
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_DEVA
|
||||
import com.mogo.eagle.core.utilcode.mogo.storage.SharedPrefsMgr
|
||||
import com.mogo.eagle.core.utilcode.mogo.toast.TipToast
|
||||
import com.mogo.eagle.core.utilcode.util.ThreadUtils
|
||||
@@ -103,14 +103,14 @@ object MogoLogCatchManager : IMogoOnMessageListener<RemoteLogPushContent>, Handl
|
||||
return false
|
||||
}
|
||||
|
||||
fun startCatchLog(duration: Int = 10) {
|
||||
fun startCatchLog(duration: Int = 10, logPrefixName: String? = null) {
|
||||
if (catchingList.contains(MANUAL_CATCH_PKG_NAME)) {
|
||||
TipToast.shortTip("已经在抓取日志了,请稍后再试")
|
||||
} else {
|
||||
CallerLogger.d("$M_DEVA$TAG", "开始抓取日志==== duration : $duration")
|
||||
manualContent.type = START_CATCH_LOG
|
||||
manualContent.duration = duration
|
||||
startCatchLog(manualContent)
|
||||
startCatchLog(manualContent, logPrefixName)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ object MogoLogCatchManager : IMogoOnMessageListener<RemoteLogPushContent>, Handl
|
||||
stopCatchLog(manualContent)
|
||||
}
|
||||
|
||||
private fun startCatchLog(content: RemoteLogPushContent) {
|
||||
private fun startCatchLog(content: RemoteLogPushContent, logPrefixName: String? = null) {
|
||||
catchingList.add(content.pkgName)
|
||||
var delay = (content.duration).toLong()
|
||||
handler.removeMessages(MSG_TRY_CLOSE_LOG)
|
||||
@@ -136,6 +136,7 @@ object MogoLogCatchManager : IMogoOnMessageListener<RemoteLogPushContent>, Handl
|
||||
mContext,
|
||||
MoGoAiCloudClientConfig.getInstance().sn,
|
||||
AppConfigInfo.toString(),
|
||||
logPrefixName?.replace("_", "-"),
|
||||
content,
|
||||
this
|
||||
)
|
||||
|
||||
@@ -22,7 +22,7 @@ interface IDevaToolsProvider : IMoGoFunctionServerProvider {
|
||||
* 开始抓取日志
|
||||
* duration : 抓取时间(分钟)
|
||||
*/
|
||||
fun startLogCatch(duration: Int)
|
||||
fun startLogCatch(duration: Int, logPrefixName: String? = null)
|
||||
|
||||
/**
|
||||
* 停止i抓取日志
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package com.mogo.eagle.core.function.call.devatools
|
||||
|
||||
import android.content.Context
|
||||
import android.view.ContextMenu
|
||||
import android.view.View
|
||||
import com.mogo.eagle.core.data.constants.MogoServicePaths
|
||||
import com.mogo.eagle.core.data.deva.chain.ChainLogParam
|
||||
@@ -30,8 +29,8 @@ object CallerDevaToolsManager {
|
||||
* 开始抓取全量日志
|
||||
* duration 分钟数
|
||||
*/
|
||||
fun startCatchLog(duration: Int) {
|
||||
devaToolsProviderApi?.startLogCatch(duration)
|
||||
fun startCatchLog(duration: Int, logPrefixName: String? = null) {
|
||||
devaToolsProviderApi?.startLogCatch(duration, logPrefixName)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -60,7 +60,7 @@ HOOK_LOG_VERSION=1.5.17
|
||||
SERVICE_CHAIN_VERSION=1.0.53
|
||||
################ 外部依赖引用 ################
|
||||
# loglib
|
||||
LOGLIB_VERSION=1.2.15
|
||||
LOGLIB_VERSION=1.2.19
|
||||
######## MogoAiCloudSDK Version ########
|
||||
# 网络请求
|
||||
MOGO_NETWORK_VERSION=1.3.31
|
||||
|
||||
Reference in New Issue
Block a user