Skip to content

Commit

Permalink
Testing and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde committed Nov 2, 2024
1 parent e7167ea commit 6f8dcfd
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions lib/Service/BroadcastService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
}
Expand Down

0 comments on commit 6f8dcfd

Please sign in to comment.