change log format
This commit is contained in:
parent
d23c9eaaa8
commit
e299ca4c24
BIN
ftpsClient.exe
BIN
ftpsClient.exe
Binary file not shown.
@ -71,7 +71,7 @@ func _InitFTP() error {
|
||||
var err error
|
||||
for i := 0; i <= retry; i++ {
|
||||
if i > 0 {
|
||||
fmt.Println("[###] Retrying Connect ...")
|
||||
log.Println("[###] Retrying Connect ...")
|
||||
}
|
||||
ftp, err = goftp.Connect(fmt.Sprintf("%s:%s", host, port))
|
||||
if err != nil {
|
||||
@ -142,7 +142,7 @@ func _Download(local, remote string) {
|
||||
}
|
||||
if err != nil {
|
||||
log.Printf("[***] %s; %s\r\n", remote, local)
|
||||
log.Printf("[ERR] Download NG: %s; %s\r\n", remote, err.Error())
|
||||
log.Printf("[ERR] Download NG: %s; %s", remote, err.Error())
|
||||
return
|
||||
}
|
||||
log.Printf("[MSG] Download OK: %s\r\n", remote)
|
||||
@ -168,7 +168,7 @@ func _Upload(local, remote string) {
|
||||
}
|
||||
if err != nil {
|
||||
log.Printf("[***] %s; %s\r\n", remote, local)
|
||||
log.Printf("[ERR] Upload NG: %s; %s\r\n", local, err.Error())
|
||||
log.Printf("[ERR] Upload NG: %s; %s", local, err.Error())
|
||||
return
|
||||
}
|
||||
log.Printf("[MSG] Upload OK: %s\r\n", local)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user