ssh cmd debug
This commit is contained in:
parent
ad1a8decc3
commit
9a86d82460
2
ssh.go
2
ssh.go
@ -161,7 +161,7 @@ func (s *Ssh) ExecPipe(cmd string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err = s.session.Start(cmd); err != nil {
|
if err = s.session.Start(cmd); err != nil {
|
||||||
log.WithFields(log.Fields{"name": s.name, "cmd": cmd, "call": "session.Start", "error": err}).Errorf("")
|
log.WithFields(log.Fields{"name": s.name, "cmd": cmd, "call": "session.Start", "attr": cmd, "error": err}).Errorf("")
|
||||||
s.session.Close()
|
s.session.Close()
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Code generated by version.sh (@generated) DO NOT EDIT.
|
// Code generated by version.sh (@generated) DO NOT EDIT.
|
||||||
package main
|
package main
|
||||||
var githash = "d217ba3"
|
var githash = "ad1a8de"
|
||||||
var branch = "master"
|
var branch = "master"
|
||||||
var buildstamp = "2024-11-17_17:15:40"
|
var buildstamp = "2024-11-17_17:16:23"
|
||||||
var commits = "98"
|
var commits = "99"
|
||||||
var version = "d217ba3-b98 - 2024-11-17_17:15:40"
|
var version = "ad1a8de-b99 - 2024-11-17_17:16:23"
|
||||||
|
Loading…
Reference in New Issue
Block a user