Browse Source

Add additional logging

johluo/lock
John Luo 6 years ago
parent
commit
d9fa83a871
  1. 5
      src/Microsoft.Tye.Hosting/ProcessRunner.cs

5
src/Microsoft.Tye.Hosting/ProcessRunner.cs

@ -367,12 +367,13 @@ namespace Microsoft.Tye.Hosting
if (ongoingProcess != newProcess) if (ongoingProcess != newProcess)
{ {
_logger.LogDebug($"[{replica}] A build has already been triggered for project {projectFile}");
return (await ongoingProcess.Task).ExitCode; return (await ongoingProcess.Task).ExitCode;
} }
_logger.LogDebug($"[{replica}] Building project {projectFile}:"); _logger.LogDebug($"[{replica}] Building project {projectFile}");
var buildResult = await ProcessUtil.RunAsync("dotnet", $"build \"{service.Status.ProjectFilePath}\" /nologo", throwOnError: false, workingDirectory: application.ContextDirectory); var buildResult = await ProcessUtil.RunAsync("dotnet", $"build \"{service.Status.ProjectFilePath}\" /nologo", throwOnError: false, workingDirectory: application.ContextDirectory);
_logger.LogDebug($"[{replica}] Finished Building project {projectFile}:"); _logger.LogDebug($"[{replica}] Finished Building project {projectFile}");
ongoingProcess.SetResult(buildResult); ongoingProcess.SetResult(buildResult);

Loading…
Cancel
Save