Skip to content

Commit

Permalink
fix(execution): fallback to logging debug messages in Docker target e…
Browse files Browse the repository at this point in the history
…xecution
  • Loading branch information
matkoch committed Sep 7, 2023
1 parent 4341db7 commit 3c21287
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,17 @@ bool IsUpToDate() => build.BuildAssemblyDirectory.GlobFiles("*.dll")
$"--{ParameterService.GetParameterDashedName(Constants.SkippedTargetsParameterName)}"
}.Concat(settings.Args))
.DisableProcessLogInvocation()
.SetProcessLogger((_, message) => Log.Write(LogEventReader.ReadFromString(message))));
.SetProcessLogger((_, message) =>
{
try
{
Log.Write(LogEventReader.ReadFromString(message));
}
catch
{
Log.Debug(message);
}
}));
}
finally
{
Expand Down

0 comments on commit 3c21287

Please sign in to comment.