mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 10:08:57 +00:00
Revert IsWarning code path to avoid breaking change (e.g., if someone overrode OnErrorDataReceived to receive such lines)
This commit is contained in:
@@ -383,10 +383,6 @@ namespace Microsoft.AspNetCore.NodeServices.HostingModels
|
||||
{
|
||||
OutputLogger.LogWarning(evt.Data);
|
||||
}
|
||||
else if (IsWarning(evt.Data))
|
||||
{
|
||||
OutputLogger.LogWarning(evt.Data);
|
||||
}
|
||||
else if (!initializationIsCompleted)
|
||||
{
|
||||
_connectionIsReadySource.SetException(
|
||||
@@ -412,11 +408,6 @@ namespace Microsoft.AspNetCore.NodeServices.HostingModels
|
||||
message.Contains("chrome-devtools:");
|
||||
}
|
||||
|
||||
private static bool IsWarning(string message)
|
||||
{
|
||||
return message.StartsWith("Warning:", StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
private FileSystemWatcher BeginFileWatcher(string rootDir)
|
||||
{
|
||||
if (_watchFileExtensions == null || _watchFileExtensions.Length == 0)
|
||||
|
||||
Reference in New Issue
Block a user