瀏覽代碼

Logging successful FTP connection

(cherry picked from commit afa2cd33440420adf5054578031afa4730cb0784)

Source commit: ed68dccae2a9ab1c3463f69c1b763c5c0d4fc325
Martin Prikryl 5 年之前
父節點
當前提交
a9a3bb04e4
共有 1 個文件被更改,包括 16 次插入0 次删除
  1. 16 0
      source/filezilla/FtpControlSocket.cpp

+ 16 - 0
source/filezilla/FtpControlSocket.cpp

@@ -550,6 +550,14 @@ void CFtpControlSocket::Connect(t_server &server)
       DoClose();
       return;
     }
+    else
+    {
+      LogMessage(FZ_LOG_INFO, L"Connection pending");
+    }
+  }
+  else
+  {
+    LogMessage(FZ_LOG_INFO, L"Connected");
   }
   m_ServerName = logontype?fwhost:hostname;
   m_LastRecvTime = m_LastSendTime = CTime::GetCurrentTime();
@@ -2310,6 +2318,14 @@ bool CFtpControlSocket::ConnectTransferSocket(const CString & host, UINT port)
     {
       result = false;
     }
+    else
+    {
+      LogMessage(FZ_LOG_INFO, L"Connection pending");
+    }
+  }
+  else
+  {
+    LogMessage(FZ_LOG_INFO, L"Connected");
   }
   return result;
 }