Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusmoore committed Oct 10, 2023
1 parent dae9e6d commit 43b9e64
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions app/Listeners/CheckoutableListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,10 @@ public function onCheckedOut($event)
Notification::route('slack', Setting::getSettings()->webhook_endpoint)
->notify($this->getCheckoutNotification($event));
}
}
catch (ClientException $e){
Log::debug("Exception caught during checkout notification: ".$e->getMessage());
}
catch (Exception $e) {
Log::error("Exception caught during checkout notification: ".$e->getMessage());
} catch (ClientException $e) {
Log::debug("Exception caught during checkout notification: " . $e->getMessage());
} catch (Exception $e) {
Log::error("Exception caught during checkout notification: " . $e->getMessage());
}
}

Expand Down Expand Up @@ -114,12 +112,10 @@ public function onCheckedIn($event)
Notification::route('slack', Setting::getSettings()->webhook_endpoint)
->notify($this->getCheckinNotification($event));
}
}
catch (ClientException $e){
Log::debug("Exception caught during checkout notification: ".$e->getMessage());
}
catch (Exception $e) {
Log::error("Exception caught during checkin notification: ".$e->getMessage());
} catch (ClientException $e) {
Log::debug("Exception caught during checkout notification: " . $e->getMessage());
} catch (Exception $e) {
Log::error("Exception caught during checkin notification: " . $e->getMessage());
}
}

Expand Down

0 comments on commit 43b9e64

Please sign in to comment.