Parcourir la source

bugfix UsageUpdate

andre il y a 2 ans
Parent
commit
f24b4ba807
2 fichiers modifiés avec 9 ajouts et 9 suppressions
  1. 9 1
      app/Libs/Metrics/MyMetricProvider.php
  2. 0 8
      kerioEmail.php

+ 9 - 1
app/Libs/Metrics/MyMetricProvider.php

@@ -56,7 +56,15 @@ class MyMetricProvider implements ProviderInterface
 
     public function usage()
     {
-        $domains =(new KerioManager())
+        logModuleCall(
+            'kerioEmail',
+            __FUNCTION__,
+            $this->moduleParams,
+            'Debug Usage',
+            'Test1'
+        );
+    
+            $domains =(new KerioManager())
             ->getApiByServer($this->moduleParams['serverid'])
             ->soap
             ->repository()

+ 0 - 8
kerioEmail.php

@@ -85,14 +85,6 @@ function KerioEmail_UsageUpdate(array $params)
 {
     require_once __DIR__ . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'App' . DIRECTORY_SEPARATOR . 'AppContext.php';
     
-    logModuleCall(
-        'kerioEmail',
-        __FUNCTION__,
-        $params,
-        'Debug Usage',
-        'Test1'
-    );
-
     $appContext = new AppContext();    
     
     return $appContext->runApp(__FUNCTION__, $params);