Skip to content

Commit

Permalink
Adjust Debug pragma to noop the monitoring stream in release build
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinGrote committed Dec 5, 2024
1 parent 1d8a574 commit 2f067f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public DebugOutputStream(Stream? underlyingStream)
if (segment.Array is null) { return; }
LogData("➡️", segment.Array, segment.Offset, segment.Count);
};
#endif

}

Expand All @@ -44,4 +43,5 @@ private static void LogData(string header, byte[] buffer, int offset, int count)
Debug.WriteLine($"{header} {data}");
}
}
#endif
}

Check failure on line 47 in test/PowerShellEditorServices.Test.E2E/Hosts/DebugOutputStream.cs

View workflow job for this annotation

GitHub Actions / dotnet (macos-latest)

} expected

Check failure on line 47 in test/PowerShellEditorServices.Test.E2E/Hosts/DebugOutputStream.cs

View workflow job for this annotation

GitHub Actions / dotnet (ubuntu-latest)

} expected

0 comments on commit 2f067f1

Please sign in to comment.