ssh exit code to debug

This commit is contained in:
Martin Geno 2017-07-08 18:50:46 +02:00
parent c704b08d5c
commit c477cfabc6
No known key found for this signature in database
GPG Key ID: F0D39A37E925E941
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ func (m *Manager) run(host string, client *ssh.Client, cmd string) (string, erro
} }
err = session.Run(cmd) err = session.Run(cmd)
if err != nil { if err != nil {
log.Log.Warnf("could not run %s on %s: %s", cmd, host, err) log.Log.Debugf("could not run %s on %s: %s", cmd, host, err)
return "", err return "", err
} }
return buffer.String(), nil return buffer.String(), nil