Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
minkai95 committed Dec 2, 2018
1 parent d4e3f0f commit 102d906
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/com/mmall/util/FTPUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ private boolean uploadFile(String remotePath,List<File> fileList) throws IOExcep
}
ftpClient.disconnect();
}
}else {
logger.info("FTP服务器连接Fail");
}
return uploaded;
}
Expand All @@ -83,6 +81,10 @@ private boolean connectServer(String ip,int port,String user,String psw){
try {
ftpClient.connect(ip);
isSuccess = ftpClient.login(user,psw);
if (!isSuccess){
logger.info("FTP服务器连接Fail");
logger.info("user:{},password:{}",user,psw);
}
} catch (IOException e) {
logger.error("连接FTP服务器异常",e);
}
Expand Down

0 comments on commit 102d906

Please sign in to comment.