From 709ae926042aaa755a10884fd440d6c2ab57caa2 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 27 Feb 2024 08:00:58 -0500 Subject: [PATCH] track error --- www-api/app/Controllers/WrenchResources.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/www-api/app/Controllers/WrenchResources.php b/www-api/app/Controllers/WrenchResources.php index caa0de98..428cc2fd 100644 --- a/www-api/app/Controllers/WrenchResources.php +++ b/www-api/app/Controllers/WrenchResources.php @@ -159,9 +159,15 @@ class WrenchResources extends BaseController return $this->response->setJson($res1); } private function getFamilyResourceCategory($in){ - $micro_service_net1 = $this->getSiteConfigurations("system.micro_service_net1"); //"10.10.10.120"; - $local_url = "http://".$micro_service_net1.":3034/famresourcecat"; - return $this->APIcall('GET', $local_url, $in); + log_message('critical', "WrenchResources Path GATE 006"); + try { + $micro_service_net1 = $this->getSiteConfigurations("system.micro_service_net1"); //"10.10.10.120"; + $local_url = "http://".$micro_service_net1.":3034/famresourcecat"; + return $this->APIcall('GET', $local_url, $in); + } catch (Exception $e) { + log_message('critical', "WrenchResources Path GATE 007 - ".$e->getMessage()); + return []; + } } private function AskCategoryData(){