[6.2.4] fix trace log

This commit is contained in:
zhongchao
2023-12-06 18:31:51 +08:00
parent cfbf4fca20
commit cd372f6b7a

View File

@@ -18,7 +18,20 @@ object CallerAutopilotRecordListenerManager : CallerBase<IMoGoAutopilotRecordLis
* 采集任务记录回调
*/
fun invokeAutopilotRecordResult(recordPanel: RecordPanelOuterClass.RecordPanel) {
CallerTrace.write("AutopilotRecord", mapOf("recordPanel" to recordPanel))
recordPanel.stat
CallerTrace.write(
"AutopilotRecord",
mapOf(
"recordPanelStat" to recordPanel.stat,
"recordPanelFilePath" to recordPanel.filename,
"recordPanelKey" to recordPanel.key,
"recordPanelId" to recordPanel.id,
"recordPanelDuration" to recordPanel.duration,
"recordPanelDiskFree" to recordPanel.diskFree,
"recordPanelNote" to recordPanel.note,
"dockerV" to CallerAutoPilotStatusListenerManager.getDockerVersion()
)
)
M_LISTENERS.forEach {
val listener = it.value
listener.onAutopilotRecordResult(recordPanel)
@@ -38,8 +51,8 @@ object CallerAutopilotRecordListenerManager : CallerBase<IMoGoAutopilotRecordLis
/**
* 录包任务管理应答
*/
fun invokeBagManagerResult(bagManager: BagManagerOuterClass.BagManager){
M_LISTENERS.forEach{
fun invokeBagManagerResult(bagManager: BagManagerOuterClass.BagManager) {
M_LISTENERS.forEach {
val listener = it.value
listener.onBagManagerResult(bagManager)
}