ssh cmd debug

This commit is contained in:
shoopea 2024-11-17 18:16:35 +01:00
parent ad1a8decc3
commit 9a86d82460
2 changed files with 5 additions and 5 deletions

2
ssh.go
View File

@ -161,7 +161,7 @@ func (s *Ssh) ExecPipe(cmd string) error {
}
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()
return err
}

View File

@ -1,7 +1,7 @@
// Code generated by version.sh (@generated) DO NOT EDIT.
package main
var githash = "d217ba3"
var githash = "ad1a8de"
var branch = "master"
var buildstamp = "2024-11-17_17:15:40"
var commits = "98"
var version = "d217ba3-b98 - 2024-11-17_17:15:40"
var buildstamp = "2024-11-17_17:16:23"
var commits = "99"
var version = "ad1a8de-b99 - 2024-11-17_17:16:23"