Преглед на файлове

V1.7
1、完成了CurlFtp的日志修改,所有功能都完成了

Apple преди 3 дни
родител
ревизия
f304620621
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 3
      module/CurlFtp/CurlFtp.cpp

+ 1 - 3
module/CurlFtp/CurlFtp.cpp

@@ -3,7 +3,6 @@
 #include <regex>
 #include <iosfwd>
 #include <fstream>
-#include <spdlog.h>
 
 #include "stdlog.h"
 
@@ -955,7 +954,7 @@ bool CurlFtp::downloadFile(const std::string& remoteFile, const std::string& loc
         LOG_ERROR("Failed to create local dir: " << localDirTmp);
         return false;
     }
-    SPDLOG_DEBUG("远程文件: {}, 本地路径: {}", ftpUrl, localFile);
+    LOG_DEBUG("远程文件: " << ftpUrl << ", 本地路径: " << localFile);
 
     /* 打开文件,Windows需要转换成 std::wstring 和 std::wofstream */
 // #if defined(_WIN32) && defined(_MSC_VER)
@@ -1382,7 +1381,6 @@ bool CurlFtp::listByWildcard(const std::string& dir, std::vector<CF_FileInfo>& o
             LOG_ERROR("Failed to get file list, Url = " << ftpUrl);
             return false;
         }
-        // SPDLOG_DEBUG("SFTP Src string: {}", strSrc);
         /* 解析字符串 */
         parseFileInfo(strSrc, out);
         return true;