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

try to get connectiontest running

andre 2 лет назад
Родитель
Сommit
2f315039b4
1 измененных файлов с 9 добавлено и 9 удалено
  1. 9 9
      api/class/KerioApiSocket.php

+ 9 - 9
api/class/KerioApiSocket.php

@@ -156,6 +156,15 @@ class KerioApiSocket implements KerioApiSocketInterface {
 	 * @throws	KerioApiException
 	 */
 	public function send($data) {
+
+        logModuleCall(
+            'kerioEmail',
+            __FUNCTION__,
+            $this->hostname,
+            'Debug Kerio Api 1',
+            $data
+        );
+
 		if ($this->checkConnection()) {
 			@fwrite($this->socketHandler, $data);
 			return $this->read();
@@ -226,15 +235,6 @@ class KerioApiSocket implements KerioApiSocketInterface {
 	 * @return	boolean	True on success
 	 */
 	public final function checkConnection() {
-        
-        logModuleCall(
-            'kerioEmail',
-            __FUNCTION__,
-            $this,
-            'Debug Kerio Api 1',
-            $hostname
-        );
-
 		if ($this->checkHost()) {
 			$socket = @fsockopen($this->hostname, $this->port, $errno, $errstr, $this->timeout);
 			$this->errorCode = $errno;