read_console: remove dead types.Contains("all") branch; compute want directly from unityType (Exception/Assert treated as errors)
parent
46f616df90
commit
ae87e3f3b2
|
|
@ -274,12 +274,6 @@ namespace UnityMcpBridge.Editor.Tools
|
||||||
}
|
}
|
||||||
|
|
||||||
bool want;
|
bool want;
|
||||||
if (types.Contains("all"))
|
|
||||||
{
|
|
||||||
want = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Treat Exception/Assert as errors for filtering convenience
|
// Treat Exception/Assert as errors for filtering convenience
|
||||||
if (unityType == LogType.Exception)
|
if (unityType == LogType.Exception)
|
||||||
{
|
{
|
||||||
|
|
@ -293,7 +287,6 @@ namespace UnityMcpBridge.Editor.Tools
|
||||||
{
|
{
|
||||||
want = types.Contains(unityType.ToString().ToLowerInvariant());
|
want = types.Contains(unityType.ToString().ToLowerInvariant());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!want) continue;
|
if (!want) continue;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue