Skip to content

Commit

Permalink
Forward error output from testhost as info (#5192)
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd committed Aug 29, 2024
1 parent b189b54 commit 07acde2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ public void ErrorReceivedCallback(StringBuilder testHostProcessStdError, string?
testHostProcessStdError.AppendSafeWithNewLine(data);
if (_forwardOutput && _messageLogger != null && !StringUtils.IsNullOrWhiteSpace(data))
{
_messageLogger.SendMessage(TestMessageLevel.Error, data);
// Forward the error output, but DO NOT forward it as error. Until now it was only written into logs,
// and applications love to write Debug messages into error stream. Which we do not want to fail the test run.
_messageLogger.SendMessage(TestMessageLevel.Informational, data);
}
}

Expand Down

0 comments on commit 07acde2

Please sign in to comment.