From 949cac213d78038539a8359c34667802c6d907ab Mon Sep 17 00:00:00 2001 From: Brian Dukes Date: Thu, 22 Feb 2024 08:58:01 -0600 Subject: [PATCH] Fix error when when logging settings --- Build/Context.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build/Context.cs b/Build/Context.cs index 3f01c3916e9..61171cd1bd6 100644 --- a/Build/Context.cs +++ b/Build/Context.cs @@ -172,7 +172,7 @@ private void WriteSettings(ICakeContext context, string settingsFile) { context.SerializeJsonToPrettyFile(settingsFile, this.Settings); context.Information(log => log($"Saved settings to {Path.GetFullPath(settingsFile)}")); - context.Debug(log => log($"Settings: {context.SerializeJson(this.Settings).Replace("{", "{{")}")); + context.Debug(log => log("{0}", $"Settings: {context.SerializeJson(this.Settings)}")); } } }