Revert IsWarning code path to avoid breaking change (e.g., if someone overrode OnErrorDataReceived to receive such lines)

This commit is contained in:
Steve Sanderson
2017-03-29 12:00:38 +01:00
parent 0c09c68b77
commit 8544714cbb

View File

@@ -383,10 +383,6 @@ namespace Microsoft.AspNetCore.NodeServices.HostingModels
{ {
OutputLogger.LogWarning(evt.Data); OutputLogger.LogWarning(evt.Data);
} }
else if (IsWarning(evt.Data))
{
OutputLogger.LogWarning(evt.Data);
}
else if (!initializationIsCompleted) else if (!initializationIsCompleted)
{ {
_connectionIsReadySource.SetException( _connectionIsReadySource.SetException(
@@ -412,11 +408,6 @@ namespace Microsoft.AspNetCore.NodeServices.HostingModels
message.Contains("chrome-devtools:"); message.Contains("chrome-devtools:");
} }
private static bool IsWarning(string message)
{
return message.StartsWith("Warning:", StringComparison.OrdinalIgnoreCase);
}
private FileSystemWatcher BeginFileWatcher(string rootDir) private FileSystemWatcher BeginFileWatcher(string rootDir)
{ {
if (_watchFileExtensions == null || _watchFileExtensions.Length == 0) if (_watchFileExtensions == null || _watchFileExtensions.Length == 0)