From e97a1061788ab04c63e1b5a7ee3628261731f1ab Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 27 Jul 2023 21:09:57 +1000 Subject: [PATCH] Add exception class when scheduled tasks fail and exception hasnt been caught --- app/Jobs/AddressPoll.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/AddressPoll.php b/app/Jobs/AddressPoll.php index c6f0b27..8ebb2b8 100644 --- a/app/Jobs/AddressPoll.php +++ b/app/Jobs/AddressPoll.php @@ -166,7 +166,7 @@ class AddressPoll implements ShouldQueue, ShouldBeUnique exit(0); default: - Log::error(sprintf('%s:! Address Poll to [%s] with an unknown exception [%s]',self::LOGKEY,$this->ao->ftn,$exception->getMessage())); + Log::error(sprintf('%s:! Address Poll to [%s] with an unknown exception (%s)[%s]',self::LOGKEY,$this->ao->ftn,get_class($exception),$exception->getMessage())); } }