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
}