aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_reminders/lib
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-07-31 12:10:50 -0700
committerChristopher Ng <chrng8@gmail.com>2023-08-03 15:30:11 -0700
commit7daf11f8f69cc7562bc46285b9eb4952b6f73b8b (patch)
tree80224516574efed48f6bdb3a800c4ac943c0d4bd /apps/files_reminders/lib
parent3ade06cd9c1ddcf8a5d0a140d40b7fab0ecfccd3 (diff)
downloadnextcloud-server-7daf11f8f69cc7562bc46285b9eb4952b6f73b8b.tar.gz
nextcloud-server-7daf11f8f69cc7562bc46285b9eb4952b6f73b8b.zip
fix: remove throwable handling
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files_reminders/lib')
-rw-r--r--apps/files_reminders/lib/BackgroundJob/ScheduledNotifications.php3
-rw-r--r--apps/files_reminders/lib/Controller/ApiController.php10
2 files changed, 0 insertions, 13 deletions
diff --git a/apps/files_reminders/lib/BackgroundJob/ScheduledNotifications.php b/apps/files_reminders/lib/BackgroundJob/ScheduledNotifications.php
index df801cea063..17b4c902029 100644
--- a/apps/files_reminders/lib/BackgroundJob/ScheduledNotifications.php
+++ b/apps/files_reminders/lib/BackgroundJob/ScheduledNotifications.php
@@ -32,7 +32,6 @@ use OCP\AppFramework\Db\DoesNotExistException;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\BackgroundJob\Job;
use Psr\Log\LoggerInterface;
-use Throwable;
class ScheduledNotifications extends Job {
public function __construct(
@@ -54,8 +53,6 @@ class ScheduledNotifications extends Job {
$this->reminderService->send($reminder);
} catch (DoesNotExistException $e) {
$this->logger->debug('Could not send notification for reminder with id ' . $reminder->getId());
- } catch (Throwable $th) {
- $this->logger->error($th->getMessage(), $th->getTrace());
}
}
}
diff --git a/apps/files_reminders/lib/Controller/ApiController.php b/apps/files_reminders/lib/Controller/ApiController.php
index af5cc1b32a7..a0dbd840111 100644
--- a/apps/files_reminders/lib/Controller/ApiController.php
+++ b/apps/files_reminders/lib/Controller/ApiController.php
@@ -39,7 +39,6 @@ use OCP\AppFramework\OCSController;
use OCP\IRequest;
use OCP\IUserSession;
use Psr\Log\LoggerInterface;
-use Throwable;
class ApiController extends OCSController {
public function __construct(
@@ -72,9 +71,6 @@ class ApiController extends OCSController {
'dueDate' => null,
];
return new DataResponse($reminderData, Http::STATUS_OK);
- } catch (Throwable $th) {
- $this->logger->error($th->getMessage(), ['exception' => $th]);
- return new DataResponse([], Http::STATUS_INTERNAL_SERVER_ERROR);
}
}
@@ -104,9 +100,6 @@ class ApiController extends OCSController {
return new DataResponse([], Http::STATUS_OK);
} catch (NodeNotFoundException $e) {
return new DataResponse([], Http::STATUS_NOT_FOUND);
- } catch (Throwable $th) {
- $this->logger->error($th->getMessage(), ['exception' => $th]);
- return new DataResponse([], Http::STATUS_INTERNAL_SERVER_ERROR);
}
}
@@ -124,9 +117,6 @@ class ApiController extends OCSController {
return new DataResponse([], Http::STATUS_OK);
} catch (DoesNotExistException $e) {
return new DataResponse([], Http::STATUS_NOT_FOUND);
- } catch (Throwable $th) {
- $this->logger->error($th->getMessage(), ['exception' => $th]);
- return new DataResponse([], Http::STATUS_INTERNAL_SERVER_ERROR);
}
}
}