Skip to content

Commit 4fb14ba

Browse files
committed
Tweak the debug logs for the scp
1 parent 0e65d13 commit 4fb14ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

upload/upload.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -373,9 +373,10 @@ func form(port, board, file string, auth Auth, l Logger) error {
373373
}
374374

375375
func ssh(port string, files []string, commandline string, auth Auth, l Logger, SSH bool) error {
376+
debug(l, "Connect via ssh ", files, commandline)
377+
376378
// Connect via ssh
377379
client, err := simplessh.ConnectWithPassword(port+":22", auth.Username, auth.Password)
378-
debug(l, "Connect via ssh ", client, err)
379380
if err != nil {
380381
return errors.Wrapf(err, "Connect via ssh")
381382
}
@@ -389,7 +390,7 @@ func ssh(port string, files []string, commandline string, auth Auth, l Logger, S
389390
fileName = "/tmp/" + filepath.Base(file)
390391
}
391392
err = scp(client, file, fileName)
392-
debug(l, "Copy "+file, err)
393+
debug(l, "Copy "+file+" to "+fileName+" ", err)
393394
if err != nil {
394395
return errors.Wrapf(err, "Copy sketch")
395396
}

0 commit comments

Comments
 (0)