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