A free open source IT asset/license management system
Try to better handle slack “too many requests” issue
snipebcad49ce79ad
diff --git a/app/Models/Loggable.php b/app/Models/Loggable.phpindex 612e4f65cd..ccf5fdfc8a 100644--- a/app/Models/Loggable.php+++ b/app/Models/Loggable.php@@ -165,14 +165,24 @@ trait Loggable$checkinClass = null;if (method_exists($target, 'notify')) {- $target->notify(new static::$checkinClass($params));+ try {+ $target->notify(new static::$checkinClass($params));+ } catch (\Exception $e) {+ \Log::debug($e);+ }+}// Send to the admin, if settings dictate$recipient = new \App\Models\Recipients\AdminRecipient();if (($settings->admin_cc_email!='') && (static::$checkinClass!='')) {- $recipient->notify(new static::$checkinClass($params));+ try {+ $recipient->notify(new static::$checkinClass($params));+ } catch (\Exception $e) {+ \Log::debug($e);+ }+}return $log;