Browse Source

文件上传测试

Zhaops 6 years ago
parent
commit
1edee875a5

+ 4 - 0
icssman-service/src/main/java/com/diagbot/client/fastdfs/FastDFSClient.java

@@ -1,5 +1,7 @@
 package com.diagbot.client.fastdfs;
 
+import com.diagbot.util.StringUtil;
+import org.apache.commons.lang3.StringUtils;
 import org.csource.common.NameValuePair;
 import org.csource.fastdfs.ClientGlobal;
 import org.csource.fastdfs.FileInfo;
@@ -44,6 +46,8 @@ public class FastDFSClient {
         try {
             storageClient = getTrackerClient();
             uploadResults = storageClient.upload_file(file.getContent(), file.getExt(), meta_list);
+            logger.info("storageClient:"+storageClient.toString());
+            logger.info("uploadResults:"+ StringUtils.join(uploadResults,','));
         } catch (IOException e) {
             logger.error("IO Exception when uploadind the file:" + file.getName(), e);
         } catch (Exception e) {