diff --git a/VERSION b/VERSION index b9765d7..dd7e48f 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -v0.7.2 -Truncate error messages to fit within AWS limits. +v0.7.3 +Remove logs tracking start and end time of exec diff --git a/cmd/sfncli/runner.go b/cmd/sfncli/runner.go index 183e2bc..5b87aa1 100644 --- a/cmd/sfncli/runner.go +++ b/cmd/sfncli/runner.go @@ -110,12 +110,6 @@ func (t *TaskRunner) Process(ctx context.Context, args []string, input string) e // forward signals to the command, handle SIGTERM go t.handleSignals(ctx) - if tmpDir == "" { - t.logger.TraceD("exec-command-start", logger.M{"args": args, "cmd": t.cmd}) - } else { - t.logger.TraceD("exec-command-start", logger.M{"args": args, "cmd": t.cmd, "workdirectory": tmpDir}) - } - start := time.Now() if err := t.execCmd.Run(); err != nil { stderr := strings.TrimSpace(stderrbuf.String()) // remove trailing newline customError, _ := parseCustomErrorFromStdout(stdoutbuf.String()) // ignore parsing errors @@ -142,7 +136,6 @@ func (t *TaskRunner) Process(ctx context.Context, args []string, input string) e } return t.sendTaskFailure(TaskFailureUnknown{err}) } - t.logger.InfoD("exec-command-end", logger.M{"duration_ns": time.Since(start)}) // AWS / states language requires JSON output taskOutput := taskOutputFromStdout(stdoutbuf.String())