Pārlūkot izejas kodu

try to get connectiontest running

andre 2 gadi atpakaļ
vecāks
revīzija
45601b0742
1 mainītis faili ar 8 papildinājumiem un 9 dzēšanām
  1. 8 9
      api/class/KerioApi.php

+ 8 - 9
api/class/KerioApi.php

@@ -287,6 +287,14 @@ class KerioApi implements KerioApiInterface {
 	public function login($hostname, $username, $password) {
 		$this->clean();
 
+		logModuleCall(
+			'kerioEmail',
+			__FUNCTION__,
+			$username,
+			'Debug Kerio Api 1',
+			$this->application
+		);
+
 		if (empty($hostname)) {
 			throw new KerioApiException('Cannot login. Hostname not set.');
 		}
@@ -307,15 +315,6 @@ class KerioApi implements KerioApiInterface {
 		);
 
 		$response = $this->sendRequest($method, $params);
-
-		logModuleCall(
-			'kerioEmail',
-			__FUNCTION__,
-			$params,
-			'Debug Kerio Api 1',
-			$response
-		);
-
 		return $response;
 	}