Make dotnet publish use LogInformation instead of LogTrace
This would make it have the same LogLevel as dotnet run so we'd have better diagnostics without having to change tests.
This commit is contained in:
parent
d2f109ef6c
commit
ec575595ad
|
|
@ -69,7 +69,7 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
|
|||
|
||||
var hostProcess = new Process() { StartInfo = startInfo };
|
||||
hostProcess.ErrorDataReceived += (sender, dataArgs) => { Logger.LogWarning(dataArgs.Data ?? string.Empty); };
|
||||
hostProcess.OutputDataReceived += (sender, dataArgs) => { Logger.LogTrace(dataArgs.Data ?? string.Empty); };
|
||||
hostProcess.OutputDataReceived += (sender, dataArgs) => { Logger.LogInformation(dataArgs.Data ?? string.Empty); };
|
||||
hostProcess.Start();
|
||||
hostProcess.BeginErrorReadLine();
|
||||
hostProcess.BeginOutputReadLine();
|
||||
|
|
|
|||
Loading…
Reference in New Issue