Log error when selfhostdeployer is unable to start the process
This commit is contained in:
parent
45874704a9
commit
95de690acd
|
|
@ -112,9 +112,17 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
|
||||||
{
|
{
|
||||||
TriggerHostShutdown(hostExitTokenSource);
|
TriggerHostShutdown(hostExitTokenSource);
|
||||||
};
|
};
|
||||||
HostProcess.Start();
|
|
||||||
HostProcess.BeginErrorReadLine();
|
try
|
||||||
HostProcess.BeginOutputReadLine();
|
{
|
||||||
|
HostProcess.Start();
|
||||||
|
HostProcess.BeginErrorReadLine();
|
||||||
|
HostProcess.BeginOutputReadLine();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Logger.LogError("Error occurred while starting the process. Exception: {exception}", ex.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
if (HostProcess.HasExited)
|
if (HostProcess.HasExited)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue