Skip to content

Commit a57b8de

Browse files
committed
Use Debug instead of Console.Error
updated to use Debug
1 parent 2e81a55 commit a57b8de

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/runtime/AssemblyManager.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ internal static Type[] GetTypes(Assembly a)
416416
// Return all types that were successfully loaded
417417
foreach (var item in exc.LoaderExceptions)
418418
{
419-
System.Console.Error.WriteLine("[pythonnet] {0}", item.Message);
419+
Debug.WriteLine("[pythonnet] {0}", item.Message);
420420
}
421421
return exc.Types.Where(x => x != null && IsExported(x)).ToArray();
422422
}
@@ -429,7 +429,7 @@ internal static Type[] GetTypes(Assembly a)
429429
}
430430
catch (FileNotFoundException)
431431
{
432-
System.Console.Error.WriteLine("[pythonnet] {0} File not found", a.GetName());
432+
Debug.WriteLine("[pythonnet] {0} File not found", a.GetName());
433433
return new Type[0];
434434
}
435435
catch (System.TypeLoadException e)
@@ -442,15 +442,15 @@ internal static Type[] GetTypes(Assembly a)
442442
{
443443
foreach (var item in exc.LoaderExceptions)
444444
{
445-
System.Console.Error.WriteLine("[pythonnet] {0}", item.Message);
445+
Debug.WriteLine("[pythonnet] {0}", item.Message);
446446
}
447447
// Return all types that were successfully loaded
448448
return exc.Types.Where(x => x != null && IsExported(x)).ToArray();
449449
}
450450
}
451451
catch (Exception e) // System.TypeLoadException
452452
{
453-
System.Console.Error.WriteLine("[pythonnet] {0} {1}", a.GetName(), e);
453+
Debug.WriteLine("[pythonnet] {0} {1}", a.GetName(), e);
454454
return new Type[0];
455455
}
456456

0 commit comments

Comments
 (0)