File tree Expand file tree Collapse file tree 1 file changed +8
-15
lines changed
UnityMcpBridge/Editor/Tools Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -274,25 +274,18 @@ bool includeStacktrace
274274 }
275275
276276 bool want ;
277- if ( types . Contains ( "all" ) )
277+ // Treat Exception/Assert as errors for filtering convenience
278+ if ( unityType == LogType . Exception )
279+ {
280+ want = types . Contains ( "error" ) || types . Contains ( "exception" ) ;
281+ }
282+ else if ( unityType == LogType . Assert )
278283 {
279- want = true ;
284+ want = types . Contains ( "error" ) || types . Contains ( "assert" ) ;
280285 }
281286 else
282287 {
283- // Treat Exception/Assert as errors for filtering convenience
284- if ( unityType == LogType . Exception )
285- {
286- want = types . Contains ( "error" ) || types . Contains ( "exception" ) ;
287- }
288- else if ( unityType == LogType . Assert )
289- {
290- want = types . Contains ( "error" ) || types . Contains ( "assert" ) ;
291- }
292- else
293- {
294- want = types . Contains ( unityType . ToString ( ) . ToLowerInvariant ( ) ) ;
295- }
288+ want = types . Contains ( unityType . ToString ( ) . ToLowerInvariant ( ) ) ;
296289 }
297290
298291 if ( ! want ) continue ;
You can’t perform that action at this time.
0 commit comments