Skip to content

Commit 989b0d6

Browse files
committed
Capture full output in runAndCaptureOutput for improved error logging
1 parent 808d17e commit 989b0d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nodes/run@v1.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ func runAndCaptureOutput(c *core.ExecutionState, cmd *exec.Cmd, print string, co
395395
if traceFile := os.Getenv("ACT_TRACE_FILE"); traceFile != "" {
396396
if f, ferr := os.OpenFile(traceFile, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644); ferr == nil {
397397
out := combinedOutput.String()
398-
tail := out[max(0, len(out)-2000):]
398+
tail := out
399399
exitCode := -1
400400
if cmd.ProcessState != nil {
401401
exitCode = cmd.ProcessState.ExitCode()

0 commit comments

Comments
 (0)