diff options
author | Joas Schilling <coding@schilljs.com> | 2023-01-24 15:21:46 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-01-24 15:21:46 +0100 |
commit | cca8617cd70298e205aa3a4f68dc174d73009f15 (patch) | |
tree | 34b15ca0aa59f49ab38fe1b24d0d39349896aa7b /lib | |
parent | 9f1d38b0980a2fb8c7736922de6dc33666b27afe (diff) |
Log the exception
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/RecordingService.php | 5 |
1 files changed, 4 insertions, 1 deletions
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); |