@@ -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("← Raw response:\n<pre>%s</pre>", $rawResponse));
/* Parse response */
@@ -156,15 +156,6 @@ class KerioApiSocket implements KerioApiSocketInterface {
* @throws KerioApiException
*/
public function send($data) {
- $this->hostname,
- $data
if ($this->checkConnection()) {
@fwrite($this->socketHandler, $data);
return $this->read();
@@ -38,24 +38,8 @@ class TestConnection extends AddonController
$serverInfo = $api->sendRequest('Server.getProductInfo');
$api->logout();
} catch (KerioApiException $error) {
- $api,
- '',
- $error->getMessage()
return ['error' => $error->getMessage()];
}
- $serverInfo,
- 'Debug Kerio Api 2',
- $api
/**
* check if connected and return true