Răsfoiți Sursa

try to get connectiontest running

andre 2 ani în urmă
părinte
comite
1b013945bb
1 a modificat fișierele cu 9 adăugiri și 9 ștergeri
  1. 9 9
      api/class/KerioApiSocket.php

+ 9 - 9
api/class/KerioApiSocket.php

@@ -227,15 +227,6 @@ class KerioApiSocket implements KerioApiSocketInterface {
 	 */
 	public final function checkConnection() {
 		if ($this->checkHost()) {
-
-			logModuleCall(
-				'kerioEmail',
-				__FUNCTION__,
-				$data,
-				'Debug Kerio Api 1',
-				$this->checkHost()
-			);
-	
 			$socket = @fsockopen($this->hostname, $this->port, $errno, $errstr, $this->timeout);
 			$this->errorCode = $errno;
 			$this->errorMessage = $errstr;
@@ -253,6 +244,15 @@ class KerioApiSocket implements KerioApiSocketInterface {
 	 * @return	boolean	True on success
 	 */
 	public final function checkHost() {
+        
+        logModuleCall(
+            'kerioEmail',
+            __FUNCTION__,
+            $this->hostname,
+            'Debug Kerio Api 1',
+            gethostbyname($this->hostname)
+        );
+
 		return gethostbyname($this->hostname) ? TRUE : FALSE;
 	}