这种输出某些特定的log时必然闪退,至于为何闪退我也不清楚哦
local fileKey= GetKeyNum()
local timeStr = math.floor(TimeManager.ServerTime)
local content = table.tostring(data)
UnityEngine.Debug.LogFormat("<color=orange>服务器数据</color>fileKey={0},msgID={1},msgName={2},msgData={3},time={4}",--time在末位,有些log必然闪退
fileKey, msgID,
msg2Name[msgID] or "",
content,timeStr)
这种把content放在末位了,就不闪退了
local fileKey= GetKeyNum()
local timeStr = math.floor(TimeManager.ServerTime)
local content = table.tostring(data)
UnityEngine.Debug.LogFormat("<color=red>发送数据</color>fileKey={0},time={1},msgID={2},msgName={3},msgData={4}",--time不在末位
fileKey, timeStr,msgID,
msg2Name[msgID] or "",
content)