Przeglądaj źródła

Merge branch 'master' of https://github.com/unaio/una

AntonLV 2 lat temu
rodzic
commit
efe6e5e357
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      inc/classes/BxDolStorageS3v4alt.php

+ 3 - 0
inc/classes/BxDolStorageS3v4alt.php

@@ -100,6 +100,7 @@ class BxDolStorageS3v4alt extends BxDolStorageS3
         } catch (Exception $e) {
             @unlink($sTmpFile);
             $this->setErrorCode(BX_DOL_STORAGE_ERR_UNLINK);
+            bx_log('sys_storage_s3v4alt', $e->getMessage());
             return false;
         }
 
@@ -162,6 +163,7 @@ class BxDolStorageS3v4alt extends BxDolStorageS3
 
         } catch (Exception $e) {
             $this->setErrorCode(BX_DOL_STORAGE_ERR_ENGINE_ADD);
+            bx_log('sys_storage_s3v4alt', $e->getMessage());
             return false;
         }
 
@@ -176,6 +178,7 @@ class BxDolStorageS3v4alt extends BxDolStorageS3
             $this->_s3->deleteObject($this->_sBucket, $sFileLocation);
         } catch (Exception $e) {
             $this->setErrorCode(BX_DOL_STORAGE_ERR_UNLINK);
+            bx_log('sys_storage_s3v4alt', $e->getMessage());
             return false;
         }