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)}")); } } }