Skip to content

Commit

Permalink
Removed %capture log line.
Browse files Browse the repository at this point in the history
  • Loading branch information
janpfeifer committed Oct 16, 2024
1 parent 1c8ba69 commit ac41c49
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/specialcmd/specialcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,7 @@ func execSpecialConfig(msg kernel.Message, goExec *goexec.State, cmdStr string,
filePath := args[0]
filePath = ReplaceTildeInDir(filePath)
filePath = ReplaceEnvVars(filePath)
err := kernel.PublishWriteStream(msg, kernel.StreamStderr, fmt.Sprintf("Capturing output to %q\n", filePath))
if err != nil {
klog.Errorf("Failed to write to kernel stdout: %+v", err)
}
var err error
var f *os.File
if appendToFile {
f, err = os.OpenFile(filePath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
Expand Down

0 comments on commit ac41c49

Please sign in to comment.