Skip to content

Commit fbca096

Browse files
cgwaltersjlebon
authored andcommitted
mantle: Log commands executed over ssh and return code
This definitely adds some chatter at debug level but I think it's really worth it.
1 parent 7912143 commit fbca096

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mantle/platform/cluster.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ func (bc *BaseCluster) SSH(m Machine, cmd string) ([]byte, []byte, error) {
109109
session.Stdout = &stdout
110110
session.Stderr = &stderr
111111
err = session.Run(cmd)
112+
plog.Debugf("Running cmd=%v res=%v", cmd, err)
112113
outBytes := bytes.TrimSpace(stdout.Bytes())
113114
errBytes := bytes.TrimSpace(stderr.Bytes())
114115
return outBytes, errBytes, err

0 commit comments

Comments
 (0)