Tiny shortcut to reduce string checking in non-debug scenarios

This commit is contained in:
Steve Sanderson
2017-03-29 12:01:01 +01:00
parent 8544714cbb
commit 1f03b1e633

View File

@@ -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);
}