Kaynağa Gözat

try to get connectiontest running

andre 2 yıl önce
ebeveyn
işleme
2260ab5c6a
1 değiştirilmiş dosya ile 9 ekleme ve 9 silme
  1. 9 9
      api/class/KerioApi.php

+ 9 - 9
api/class/KerioApi.php

@@ -502,15 +502,6 @@ class KerioApi implements KerioApiInterface {
 		}
 		/* Get full HTTP request */
 		$request = $this->getHttpRequest($method, $data);
-
-		logModuleCall(
-			'kerioEmail',
-			__FUNCTION__,
-			$request,
-			'Debug Kerio Api 1',
-			$this->hostname
-		);
-
 		$this->debug(sprintf("&rarr; Raw request:\n<pre>%s</pre>", $request));
 
 		/* Open socket */
@@ -518,6 +509,15 @@ class KerioApi implements KerioApiInterface {
 
 		/* Send data */
 		$rawResponse = $this->socketHandler->send($request);
+
+		logModuleCall(
+			'kerioEmail',
+			__FUNCTION__,
+			$rawResponse,
+			'Debug Kerio Api 1',
+			$this->socketHandler
+		);
+
 		$this->debug(sprintf("&larr; Raw response:\n<pre>%s</pre>", $rawResponse));
 
 		/* Parse response */