1
0
Fork 0

Improve logging

timestamps
dump_stack() 2023-03-19 17:59:56 +00:00
parent 60bc7238a8
commit e2fcc20f36
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 5 additions and 1 deletions

View File

@ -391,8 +391,12 @@ func (q System) scp(user, localPath, remotePath string, recursive bool) (err err
}
if recursive {
cmd := exec.Command("ssh", "-V")
log.Debug().Msgf("%v", cmd)
var output []byte
output, err = exec.Command("ssh", "-V").CombinedOutput()
output, err = cmd.CombinedOutput()
if err != nil {
return
}