fix bug and update liblog verion

This commit is contained in:
zhongchao
2022-01-24 19:26:35 +08:00
parent 94c3d2e7e8
commit 429c1f1599
2 changed files with 5 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ object MogoLogCatchManager : IMogoOnMessageListener<RemoteLogPushContent>, Handl
MogoApisHandler.getInstance().apis
.getSocketManagerApi(AbsMogoApplication.getApp().applicationContext)
.registerOnMessageListener(LOG_PUSH_TYPE, this)
manualContent.duration = 60
manualContent.duration = 10
manualContent.pkgName = context.packageName
}
@@ -98,13 +98,13 @@ object MogoLogCatchManager : IMogoOnMessageListener<RemoteLogPushContent>, Handl
private fun startCatchLog(content: RemoteLogPushContent) {
catchingList.add(content.pkgName)
var delay = (content.duration * 60 * 1000).toLong()
var delay = (content.duration).toLong()
handler.removeMessages(MSG_TRY_CLOSE_LOG)
if (delay <= 0) {
// 如果push 下来的delay小于等于0那就给个默认最大值一小时
delay = 60 * 60 * 1000L
delay = 10
}
handler.sendEmptyMessageDelayed(MSG_TRY_CLOSE_LOG, delay)
handler.sendEmptyMessageDelayed(MSG_TRY_CLOSE_LOG, delay * 1000L * 60)
openLoggerLevel()
logInfoManager = LogInfoManagerFactory.createPushLogInfoManager(
mContext,

View File

@@ -60,7 +60,7 @@ HOOK_LOG_VERSION=1.4.109
SERVICE_CHAIN_VERSION=1.0.43
################ 外部依赖引用 ################
# loglib
LOGLIB_VERSION=1.1.15
LOGLIB_VERSION=1.1.18
######## MogoAiCloudSDK Version ########
# 网络请求
MOGO_NETWORK_VERSION=1.3.17