From 6f8dcfdb6f586bd4558b8c946002c44776825048 Mon Sep 17 00:00:00 2001 From: Ruben van der Linde Date: Sat, 2 Nov 2024 20:31:11 +0100 Subject: [PATCH] Testing and fixes --- lib/Service/BroadcastService.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/Service/BroadcastService.php b/lib/Service/BroadcastService.php index 802b87c4..9a688fdd 100644 --- a/lib/Service/BroadcastService.php +++ b/lib/Service/BroadcastService.php @@ -75,17 +75,12 @@ public function broadcast(?string $url = null): void { ]); // Log successful broadcast - trigger_error( - "Successfully broadcasted to {$hook}", - E_USER_NOTICE - ); + \OC::$server->getLogger()->info('Successfully broadcasted to ' . $hook); + } catch (\Exception $e) { // Throw a warning since broadcasting failure shouldn't break the application flow // but we still want to notify about the issue - trigger_error( - "Failed to broadcast to {$hook}: " . $e->getMessage(), - E_USER_WARNING - ); + \OC::$server->getLogger()->warning('Failed to broadcast to ' . $hook . ': ' . $e->getMessage()); } } }