فهرست منبع

Logging FTP control connection reading

Source commit: 3e1c1f82427a9ee3f7b92f9708b895dfee524a39
Martin Prikryl 5 سال پیش
والد
کامیت
464cb98038
1فایلهای تغییر یافته به همراه10 افزوده شده و 0 حذف شده
  1. 10 0
      source/filezilla/FtpControlSocket.cpp

+ 10 - 0
source/filezilla/FtpControlSocket.cpp

@@ -1206,6 +1206,10 @@ void CFtpControlSocket::OnReceive(int nErrorCode)
       ShowStatus(IDS_STATUSMSG_DISCONNECTED, FZ_LOG_ERROR);
       DoClose();
     }
+    else
+    {
+      LogSocketMessageRaw(FZ_LOG_INFO, L"No data to read");
+    }
     return;
   }
   if (!numread)
@@ -1215,6 +1219,12 @@ void CFtpControlSocket::OnReceive(int nErrorCode)
     ShowStatus(IDS_STATUSMSG_DISCONNECTED, FZ_LOG_ERROR);
     DoClose();
   }
+  if (LoggingMessageType(FZ_LOG_INFO))
+  {
+    CString str;
+    str.Format(L"Read %d bytes", numread);
+    LogSocketMessageRaw(FZ_LOG_INFO, str);
+  }
 
   for (int i=0; i < numread; i++)
   {