diff --git a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/logcatch/MogoLogCatchManager.kt b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/logcatch/MogoLogCatchManager.kt index 133555a2d0..eb5d30426c 100644 --- a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/logcatch/MogoLogCatchManager.kt +++ b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/logcatch/MogoLogCatchManager.kt @@ -194,6 +194,7 @@ object MogoLogCatchManager : IMogoOnMessageListener, Handl private fun openLoggerLevel() { Logger.init(LogLevel.DEBUG) MoGoAiCloudClient.getInstance().aiCloudClientConfig.isShowDebugLog = true + MoGoAiCloudClient.getInstance().aiCloudClientConfig.isShowNetDebugLog = true CallerAutoPilotManager.setEnableLog(true) } @@ -203,6 +204,7 @@ object MogoLogCatchManager : IMogoOnMessageListener, Handl private fun closeLoggerLevel() { Logger.init(if (DebugConfig.isDebug()) LogLevel.DEBUG else LogLevel.OFF) MoGoAiCloudClient.getInstance().aiCloudClientConfig.isShowDebugLog = false + MoGoAiCloudClient.getInstance().aiCloudClientConfig.isShowNetDebugLog = false CallerAutoPilotManager.setEnableLog(false) } diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt index 59c077946a..3ab3c27cc9 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt @@ -14,6 +14,7 @@ import androidx.core.content.ContextCompat import androidx.recyclerview.widget.LinearLayoutManager import chassis.Chassis import com.mogo.cloud.passport.MoGoAiCloudClient +import com.mogo.cloud.passport.MoGoAiCloudClientConfig import com.mogo.commons.AbsMogoApplication import com.mogo.commons.debug.DebugConfig import com.mogo.eagle.core.data.app.AppConfigInfo @@ -1031,6 +1032,13 @@ class DebugSettingView @JvmOverloads constructor( } } + /** + * 设置是否输出网络日志 true-打印日志,false-不打印日志 + */ + tbNetLog.setOnCheckedChangeListener { _, isChecked -> + MoGoAiCloudClientConfig.getInstance().isShowNetDebugLog = isChecked + } + cbTraceLog.isChecked = CallerDevaToolsManager.getTraceLogStatus() //链路Log输出日志 cbTraceLog.setOnCheckedChangeListener { _, isChecked -> @@ -1659,7 +1667,6 @@ class DebugSettingView @JvmOverloads constructor( } override fun onLocationChanged(location: MogoLocation?, from: Int) { - } /** diff --git a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml index e5cc4ff123..7d24f05068 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml +++ b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml @@ -1421,6 +1421,17 @@ android:textOn="关闭日志过滤面板" android:textSize="@dimen/dp_24" /> + +