Skip to content

Commit ed4ac92

Browse files
authored
Forward error output from testhost as info (#5193)
1 parent c6ad3e3 commit ed4ac92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Microsoft.TestPlatform.TestHostProvider/Hosting/TestHostManagerCallbacks.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ public void ErrorReceivedCallback(StringBuilder testHostProcessStdError, string?
5858
testHostProcessStdError.AppendSafeWithNewLine(data);
5959
if (_forwardOutput && _messageLogger != null && !StringUtils.IsNullOrWhiteSpace(data))
6060
{
61-
_messageLogger.SendMessage(TestMessageLevel.Error, data);
61+
// Forward the error output, but DO NOT forward it as error. Until now it was only written into logs,
62+
// and applications love to write Debug messages into error stream. Which we do not want to fail the test run.
63+
_messageLogger.SendMessage(TestMessageLevel.Informational, data);
6264
}
6365
}
6466

0 commit comments

Comments
 (0)