浏览代码

Logging successful FTP connection

Source commit: 63adfa829d34d299a19e2e2565dab8e54cd79076
Martin Prikryl 5 年之前
父节点
当前提交
afa2cd3344
共有 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();
       DoClose();
       return;
       return;
     }
     }
+    else
+    {
+      LogMessage(FZ_LOG_INFO, L"Connection pending");
+    }
+  }
+  else
+  {
+    LogMessage(FZ_LOG_INFO, L"Connected");
   }
   }
   m_ServerName = logontype?fwhost:hostname;
   m_ServerName = logontype?fwhost:hostname;
   m_LastRecvTime = m_LastSendTime = CTime::GetCurrentTime();
   m_LastRecvTime = m_LastSendTime = CTime::GetCurrentTime();
@@ -2310,6 +2318,14 @@ bool CFtpControlSocket::ConnectTransferSocket(const CString & host, UINT port)
     {
     {
       result = false;
       result = false;
     }
     }
+    else
+    {
+      LogMessage(FZ_LOG_INFO, L"Connection pending");
+    }
+  }
+  else
+  {
+    LogMessage(FZ_LOG_INFO, L"Connected");
   }
   }
   return result;
   return result;
 }
 }