Sfoglia il codice sorgente

Logging successful FTP connection

Source commit: 63adfa829d34d299a19e2e2565dab8e54cd79076
Martin Prikryl 5 anni fa
parent
commit
afa2cd3344
1 ha cambiato i file con 16 aggiunte e 0 eliminazioni
  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;
 }