From e20f401d8da34b176a17a236e3710b06190e17ec Mon Sep 17 00:00:00 2001 From: Aaron Costley Date: Thu, 3 Jan 2019 19:13:16 -0600 Subject: [PATCH] fix(jsii-dotnet-runtime): Redirect to STDERR. When JSII_DEBUG is set, STDERR output from the node process should be redirected to the .NET STDERR. --- .../src/Amazon.JSII.Runtime/Services/Runtime.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/jsii-dotnet-runtime/src/Amazon.JSII.Runtime/Services/Runtime.cs b/packages/jsii-dotnet-runtime/src/Amazon.JSII.Runtime/Services/Runtime.cs index bbb4550df6..f9bc6749cb 100644 --- a/packages/jsii-dotnet-runtime/src/Amazon.JSII.Runtime/Services/Runtime.cs +++ b/packages/jsii-dotnet-runtime/src/Amazon.JSII.Runtime/Services/Runtime.cs @@ -48,8 +48,8 @@ private void RedirectStandardError() { while (true) { - Console.WriteLine(_nodeProcess.StandardError.ReadLine()); + Console.Error.WriteLine(_nodeProcess.StandardError.ReadLine()); } } } -} \ No newline at end of file +}