From 1f03b1e6331bdc2ee216df38e722cbbafac281bc Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Wed, 29 Mar 2017 12:01:01 +0100 Subject: [PATCH] Tiny shortcut to reduce string checking in non-debug scenarios --- .../HostingModels/OutOfProcessNodeInstance.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.AspNetCore.NodeServices/HostingModels/OutOfProcessNodeInstance.cs b/src/Microsoft.AspNetCore.NodeServices/HostingModels/OutOfProcessNodeInstance.cs index 8a4894c..443aacd 100644 --- a/src/Microsoft.AspNetCore.NodeServices/HostingModels/OutOfProcessNodeInstance.cs +++ b/src/Microsoft.AspNetCore.NodeServices/HostingModels/OutOfProcessNodeInstance.cs @@ -379,7 +379,7 @@ namespace Microsoft.AspNetCore.NodeServices.HostingModels { if (evt.Data != null) { - if (IsDebuggerMessage(evt.Data)) + if (_launchWithDebugging && IsDebuggerMessage(evt.Data)) { OutputLogger.LogWarning(evt.Data); }