nextcloud/apps/files_versions/lib
Christoph Wurst 12d1c27b7f
Catch storage not available in versions expire command
External storage with session credentials is not accessible without a
user session, hence background jobs and CLI commands can't work with
them. The previously unhandled exception causes logged errors in the
nextcloud log. This patch catches the specific exception and logs it as
warnings. So for a production instance the error won't spam their logs
for this non-recoverable and technically unsolvable error if the minimum
log level is set to the default of 3 (error).

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-11-25 09:28:38 +01:00
..
AppInfo Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
BackgroundJob Update license headers for 19 2020-04-29 11:57:22 +02:00
Command Catch storage not available in versions expire command 2020-11-25 09:28:38 +01:00
Controller Update license headers 2019-12-05 15:38:45 +01:00
Events Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Listener Update license headers for 19 2020-04-29 11:57:22 +02:00
Sabre Update license headers for 19 2020-04-29 11:57:22 +02:00
Versions Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Capabilities.php Update license headers for 19 2020-04-29 11:57:22 +02:00
Expiration.php Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
Hooks.php Update license headers for 19 2020-04-29 11:57:22 +02:00
Storage.php Return all keys in getAllVersions() instead 2020-10-12 22:17:06 +02:00