Skip to content

Commit

Permalink
log notification sent
Browse files Browse the repository at this point in the history
  • Loading branch information
tomahock committed Jul 8, 2024
1 parent f5139bb commit cdb1d78
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/Tools/NotificationTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ public static function test()
],
];

Log::debug(json_encode($headers));

try{
$response = $client->post(self::$endpoint,$headers );
} catch (RequestException $e){
Expand Down Expand Up @@ -114,6 +116,7 @@ private static function sendRequest($topic, $status, $location, $id)
],
];

Log::debug(json_encode($headers));
try{
$response = $client->post(self::$endpoint,$headers );
} catch (RequestException $e){
Expand Down Expand Up @@ -160,6 +163,8 @@ private static function sendCustomTitleRequest($topic, $status, $title, $forceEn
],
];

Log::debug(json_encode($headers));

try{
$response = $client->post(self::$endpoint,$headers );
} catch (RequestException $e){
Expand Down Expand Up @@ -266,6 +271,8 @@ public static function sendImportant($status, $incidentId)
],
];

Log::debug(json_encode($headers));

try{
$response = $client->post(self::$endpoint,$headers );
} catch (RequestException $e){
Expand Down

0 comments on commit cdb1d78

Please sign in to comment.