Skip to content

Commit c5fb41d

Browse files
committed
add environment to debug print for task execution
1 parent 42b5a0b commit c5fb41d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

service/task/target.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,8 @@ func execute(dir string, env map[string]string, command []string) (err error) {
7777

7878
zap.L().Debug("executing target command",
7979
zap.String("command", command[0]),
80+
zap.Strings("env", cmd.Env),
8081
zap.Strings("args", command[1:]))
81-
err = cmd.Run()
82-
if err != nil {
83-
return err
84-
}
8582

86-
return
83+
return cmd.Run()
8784
}

0 commit comments

Comments
 (0)