PragmaTwice commented on code in PR #2894:
URL: https://github.com/apache/kvrocks/pull/2894#discussion_r2059524883


##########
src/cluster/replication.cc:
##########
@@ -962,14 +954,14 @@ Status ReplicationThread::fetchFiles(int sock_fd, const 
std::string &dir, const
 
   UniqueEvbuf evbuf;
   for (unsigned i = 0; i < files.size(); i++) {
-    DLOG(INFO) << "[fetch] Start to fetch file " << files[i];
+    info("[fetch] Start to fetch file {}", files[i]);

Review Comment:
   ```suggestion
       debug("[fetch] Start to fetch file {}", files[i]);
   ```



##########
src/cluster/replication.cc:
##########
@@ -962,14 +954,14 @@ Status ReplicationThread::fetchFiles(int sock_fd, const 
std::string &dir, const
 
   UniqueEvbuf evbuf;
   for (unsigned i = 0; i < files.size(); i++) {
-    DLOG(INFO) << "[fetch] Start to fetch file " << files[i];
+    info("[fetch] Start to fetch file {}", files[i]);
     s = fetchFile(sock_fd, evbuf.get(), dir, files[i], crcs[i], fn, ssl);
     if (!s.IsOK()) {
       s = Status(Status::NotOK, "fetch file err: " + s.Msg());
-      LOG(WARNING) << "[fetch] Fail to fetch file " << files[i] << ", err: " 
<< s.Msg();
+      warn("[fetch] Fail to fetch file {}, err: {}", files[i], s.Msg());
       break;
     }
-    DLOG(INFO) << "[fetch] Succeed fetching file " << files[i];
+    info("[fetch] Succeed fetching file {}", files[i]);

Review Comment:
   ```suggestion
       debug("[fetch] Succeed fetching file {}", files[i]);
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to