Skip to content

Commit

Permalink
Use trace instead of debug to warn about freeze workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
notgiven688 committed Sep 12, 2024
1 parent 923e48c commit 7cea31f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jitter2/Parallelization/ThreadPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private ThreadPool()
// To avoid this issue, multi-threading is disabled when a debugger is attached on non-Windows systems.
if (!OperatingSystem.IsWindows() && Debugger.IsAttached)
{
System.Diagnostics.Debug.WriteLine(
System.Diagnostics.Trace.WriteLine(
"Multi-threading disabled to prevent potential hangups: Debugger attached, " +
".NET version < 9.0, non-Windows system detected.");
initialThreadCount = 1; // Forces single-threading to avoid hangups
Expand Down

0 comments on commit 7cea31f

Please sign in to comment.