Sfoglia il codice sorgente

try to get connectiontest running

andre 2 anni fa
parent
commit
bca67604bd
1 ha cambiato i file con 9 aggiunte e 9 eliminazioni
  1. 9 9
      api/class/KerioApi.php

+ 9 - 9
api/class/KerioApi.php

@@ -296,15 +296,6 @@ class KerioApi implements KerioApiInterface {
 			throw new KerioApiException('Cannot login. Application not defined.');
 			throw new KerioApiException('Cannot login. Application not defined.');
 		}
 		}
 		$this->setHostname($hostname);
 		$this->setHostname($hostname);
-
-		logModuleCall(
-			'kerioEmail',
-			__FUNCTION__,
-			$hostname,
-			'Debug Kerio Api 1',
-			$this->application
-		);
-
 		$method = 'Session.login';
 		$method = 'Session.login';
 		$params = array(
 		$params = array(
 			'userName'		=> $username,
 			'userName'		=> $username,
@@ -313,6 +304,15 @@ class KerioApi implements KerioApiInterface {
 		);
 		);
 
 
 		$response = $this->sendRequest($method, $params);
 		$response = $this->sendRequest($method, $params);
+
+		logModuleCall(
+			'kerioEmail',
+			__FUNCTION__,
+			$params,
+			'Debug Kerio Api 1',
+			$response
+		);
+
 		return $response;
 		return $response;
 	}
 	}