guodong 3 жил өмнө
parent
commit
eaa0fd0535

+ 11 - 12
GameClient/Assets/Game/HotUpdate/Controller/LogController.cs

@@ -75,20 +75,19 @@ namespace GFGGame
                     }
                     }
                     break;
                     break;
                 default:
                 default:
-                    if (msgDic[_all].Count == _maxCount)
-                    {
-                        msgDic[_all].RemoveAt(0);
-                    }
-                    if (msgDic[_log].Count == _maxCount)
-                    {
-                        msgDic[_log].RemoveAt(0);
-                    }
-                    msg = string.Format("log@{2}\n{0}\n{1}", condition, stackTrace, time);
-                    msgDic[_all].Add(msg);
-                    msgDic[_log].Add(msg);
                     if (LauncherConfig.onDebug >= 2)
                     if (LauncherConfig.onDebug >= 2)
                     {
                     {
-                        ViewManager.Show(ViewName.LOG_VIEW);
+                        if (msgDic[_all].Count == _maxCount)
+                        {
+                            msgDic[_all].RemoveAt(0);
+                        }
+                        if (msgDic[_log].Count == _maxCount)
+                        {
+                            msgDic[_log].RemoveAt(0);
+                        }
+                        msg = string.Format("log@{2}\n{0}\n{1}", condition, stackTrace, time);
+                        msgDic[_all].Add(msg);
+                        msgDic[_log].Add(msg);
                     }
                     }
                     break;
                     break;
             }
             }