From 3c212879b74c63c994dc27da0b331dc6f8281a5c Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Thu, 7 Sep 2023 23:01:09 +0200 Subject: [PATCH] fix(execution): fallback to logging debug messages in Docker target execution --- .../Tools/Docker/DockerTargetDefinitionExtensions.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/Nuke.Common/Tools/Docker/DockerTargetDefinitionExtensions.cs b/source/Nuke.Common/Tools/Docker/DockerTargetDefinitionExtensions.cs index aafad5c1e..bfd4a58a3 100644 --- a/source/Nuke.Common/Tools/Docker/DockerTargetDefinitionExtensions.cs +++ b/source/Nuke.Common/Tools/Docker/DockerTargetDefinitionExtensions.cs @@ -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 {