File tree 1 file changed +6
-0
lines changed
apps/dav/lib/Connector/Sabre
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 47
47
use OCP \Files \StorageNotAvailableException ;
48
48
use OCP \Lock \ILockingProvider ;
49
49
use OCP \Lock \LockedException ;
50
+ use Psr \Log \LoggerInterface ;
50
51
use Sabre \DAV \Exception \BadRequest ;
51
52
use Sabre \DAV \Exception \Locked ;
52
53
use Sabre \DAV \Exception \NotFound ;
@@ -331,6 +332,8 @@ public function delete() {
331
332
* @return array
332
333
*/
333
334
public function getQuotaInfo () {
335
+ /** @var LoggerInterface $logger */
336
+ $ logger = \OC ::$ server ->get (LoggerInterface::class);
334
337
if ($ this ->quotaInfo ) {
335
338
return $ this ->quotaInfo ;
336
339
}
@@ -347,10 +350,13 @@ public function getQuotaInfo() {
347
350
];
348
351
return $ this ->quotaInfo ;
349
352
} catch (\OCP \Files \NotFoundException $ e ) {
353
+ $ logger ->warning ("error while getting quota into " , ['exception ' => $ e ]);
350
354
return [0 , 0 ];
351
355
} catch (\OCP \Files \StorageNotAvailableException $ e ) {
356
+ $ logger ->warning ("error while getting quota into " , ['exception ' => $ e ]);
352
357
return [0 , 0 ];
353
358
} catch (NotPermittedException $ e ) {
359
+ $ logger ->warning ("error while getting quota into " , ['exception ' => $ e ]);
354
360
return [0 , 0 ];
355
361
}
356
362
}
You can’t perform that action at this time.
0 commit comments