Explorar el Código

debug errorcode

andre hace 5 días
padre
commit
a67b3dba6d
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9 0
      core/HandlerError/Exceptions/Exception.php

+ 9 - 0
core/HandlerError/Exceptions/Exception.php

@@ -57,6 +57,15 @@ class Exception extends \Exception
 
     public function __construct($errorCode = null, $additionalData = null, $toTranslate = null, $originalException = null)
     {
+ 
+        logModuleCall(
+            'proxmoxCloud',
+            __FUNCTION__,
+            $errorCode,
+            'Debug Error',
+            $this
+        );
+        
         $this->errorCode = $this->genErrorCode(($errorCode ? : self::DEFAULT_ERROR_CODE));
 
         $this->setAdditionalData($additionalData);