Skip to content

Commit

Permalink
Also log positive result
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde committed Nov 2, 2024
1 parent 5e29372 commit c71173a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Service/BroadcastService.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ public function broadcast(?string $url = null): void {
'directory' => $directoryUrl
]
]);

// Log successful broadcast
trigger_error(
"Successfully broadcasted to {$hook}",
E_USER_NOTICE
);
} catch (\Exception $e) {
// Throw a warning since broadcasting failure shouldn't break the application flow
// but we still want to notify about the issue
Expand Down

0 comments on commit c71173a

Please sign in to comment.