Просмотр исходного кода

try to get connectiontest running

andre 2 лет назад
Родитель
Сommit
bca67604bd
1 измененных файлов с 9 добавлено и 9 удалено
  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.');
 		}
 		$this->setHostname($hostname);
-
-		logModuleCall(
-			'kerioEmail',
-			__FUNCTION__,
-			$hostname,
-			'Debug Kerio Api 1',
-			$this->application
-		);
-
 		$method = 'Session.login';
 		$params = array(
 			'userName'		=> $username,
@@ -313,6 +304,15 @@ class KerioApi implements KerioApiInterface {
 		);
 
 		$response = $this->sendRequest($method, $params);
+
+		logModuleCall(
+			'kerioEmail',
+			__FUNCTION__,
+			$params,
+			'Debug Kerio Api 1',
+			$response
+		);
+
 		return $response;
 	}