diff --git a/src/chocolatey/infrastructure.app/services/PowershellService.cs b/src/chocolatey/infrastructure.app/services/PowershellService.cs index 05cc40362d..145512cf74 100644 --- a/src/chocolatey/infrastructure.app/services/PowershellService.cs +++ b/src/chocolatey/infrastructure.app/services/PowershellService.cs @@ -200,7 +200,8 @@ public bool run_action(ChocolateyConfiguration configuration, PackageResult pack this.Log().Debug(ChocolateyLoggers.Important, "Contents of '{0}':".format_with(chocoPowerShellScript)); string chocoPowerShellScriptContents = _fileSystem.read_file(chocoPowerShellScript); - this.Log().Debug(chocoPowerShellScriptContents.escape_curly_braces()); + // leave this way, doesn't take it through formatting. + this.Log().Debug(() => chocoPowerShellScriptContents.escape_curly_braces()); bool shouldRun = !configuration.PromptForConfirmation;