From cca8617cd70298e205aa3a4f68dc174d73009f15 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 24 Jan 2023 15:21:46 +0100 Subject: Log the exception Signed-off-by: Joas Schilling --- lib/Service/RecordingService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Service/RecordingService.php b/lib/Service/RecordingService.php index 0a7f7af2a..7a26c4ebb 100644 --- a/lib/Service/RecordingService.php +++ b/lib/Service/RecordingService.php @@ -43,6 +43,7 @@ use OCP\Files\NotPermittedException; use OCP\Notification\IManager; use OCP\Share\IManager as ShareManager; use OCP\Share\IShare; +use Psr\Log\LoggerInterface; class RecordingService { public const DEFAULT_ALLOWED_RECORDING_FORMATS = [ @@ -61,7 +62,8 @@ class RecordingService { protected Config $config, protected RoomService $roomService, protected ShareManager $shareManager, - protected ChatManager $chatManager + protected ChatManager $chatManager, + protected LoggerInterface $logger, ) { } @@ -236,6 +238,7 @@ class RecordingService { true ); } catch (\Exception $e) { + $this->logger->error($e->getMessage(), ['exception' => $e]); throw new InvalidArgumentException('system'); } $this->notificationDismiss($room, $participant, $timestamp); -- cgit v1.2.3