소스 검색

try to get connectiontest running

andre 2 년 전
부모
커밋
2bfb5adec6
1개의 변경된 파일9개의 추가작업 그리고 9개의 파일을 삭제
  1. 9 9
      api/class/KerioApi.php

+ 9 - 9
api/class/KerioApi.php

@@ -304,15 +304,6 @@ class KerioApi implements KerioApiInterface {
 		);
 
 		$response = $this->sendRequest($method, $params);
-
-		logModuleCall(
-			'kerioEmail',
-			__FUNCTION__,
-			$params,
-			'Debug Kerio Api 1',
-			$response
-		);
-
 		return $response;
 	}
 
@@ -464,6 +455,15 @@ class KerioApi implements KerioApiInterface {
 	 * @return	array	Returns same type as param is, e.g. JSON if method is also JSON
 	 */
 	public function sendRequest($method, $params = '') {
+
+		logModuleCall(
+			'kerioEmail',
+			__FUNCTION__,
+			$params,
+			'Debug Kerio Api 1',
+			$method
+		);
+
 		$request = array(
 			'jsonrpc'	=>	$this->jsonRpc['version'],
 			'id'		=>	$this->getRequestId(),