From 854141ede86f282ec598536c405cd2175a63a167 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 3 May 2022 09:45:40 +1000 Subject: [PATCH] Logging for gmail notifications --- app/Models/Account.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Models/Account.php b/app/Models/Account.php index 3e802f6d4834..8af56a3a590d 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -428,10 +428,13 @@ class Account extends BaseModel public function gmailCredentialNotification() :bool { + nlog("checking if gmail credential notification has already been sent"); if(is_null(Cache::get($this->key))) return false; + nlog("Sending notification"); + try { if(is_null(Cache::get("gmail_credentials_notified:{$this->key}"))) {