Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve terminal logger #4877

Merged
merged 26 commits into from
Feb 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename to Escape
  • Loading branch information
nohwnd committed Feb 12, 2024
commit 4627dc8a242c77ea4dd9b98d00ae39602639e32d
4 changes: 2 additions & 2 deletions src/vstest.console/Internal/MSBuildLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ private static void SendMessage(string name, params string?[] data)

private static string FormatMessage(string name, params string?[] data)
{
return $"||||{name}{data.Length}||||{string.Join("||||", data.Select(Clean))}";
return $"||||{name}{data.Length}||||{string.Join("||||", data.Select(Escape))}";
}

private static string? Clean(string? input)
private static string? Escape(string? input)
{
if (input == null)
{
Expand Down