style: ssh文件操作log日志s输出信息
This commit is contained in:
1 parent
7b39972f2c
commit
e79ea30e52
2 files changed
+9
-2
No files matched your search
@@ -100,6 +100,7 @@ func (c *ConnSSH) RunCMD(cmd string) (string, error) {
|
||||
defer session.Close()
|
||||
buf, err := session.CombinedOutput(cmd)
|
||||
if err != nil {
|
||||
logger.Infof("RunCMD failed run command: => %s", cmd)
|
||||
logger.Errorf("RunCMD failed run command: => %s", err.Error())
|
||||
}
|
||||
c.LastResult = string(buf)
|
||||
|
||||
Reference in new issue
Block a user