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 24, 2023
1 parent f6123b1 commit 3a735ee
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 3a735ee

Please sign in to comment.