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 dded2d2 commit d4e3f0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/mmall/util/FTPUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static boolean uploadFile(List<File> fileList) throws IOException {
FTPUtil ftpUtil = new FTPUtil(ftpIp,21,ftpUser,ftpPass);
logger.info("开始连接FTP服务器");
boolean result = ftpUtil.uploadFile("img",fileList);
logger.info("开始连接FTP服务器,结束上传,上传结果为:{}",result);
logger.info("结束上传,上传结果为:{}",result);
return result;
}

Expand Down Expand Up @@ -63,6 +63,8 @@ private boolean uploadFile(String remotePath,List<File> fileList) throws IOExcep
}
ftpClient.disconnect();
}
}else {
logger.info("FTP服务器连接Fail");
}
return uploaded;
}
Expand Down

0 comments on commit d4e3f0f

Please sign in to comment.