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

cleanup log for testconnection, is running now

andre 2 лет назад
Родитель
Сommit
c75146a239
3 измененных файлов с 0 добавлено и 34 удалено
  1. 0 9
      api/class/KerioApi.php
  2. 0 9
      api/class/KerioApiSocket.php
  3. 0 16
      app/Http/Actions/TestConnection.php

+ 0 - 9
api/class/KerioApi.php

@@ -509,15 +509,6 @@ 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 */

+ 0 - 9
api/class/KerioApiSocket.php

@@ -156,15 +156,6 @@ 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();

+ 0 - 16
app/Http/Actions/TestConnection.php

@@ -38,24 +38,8 @@ class TestConnection extends AddonController
             $serverInfo = $api->sendRequest('Server.getProductInfo');
             $api->logout();
         } catch (KerioApiException $error) {
-            logModuleCall(
-                'kerioEmail',
-                __FUNCTION__,
-                $api,
-                '',
-                $error->getMessage()
-            );
             return ['error' => $error->getMessage()];
         }             
-        
-        logModuleCall(
-            'kerioEmail',
-            __FUNCTION__,
-            $serverInfo,
-            'Debug Kerio Api 2',
-            $api
-        );
-
         /**
          * check if connected and return true
          */