From e95b15bff77cfb2655234f036ff8c22a8feee53e Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 22 Jan 2025 18:19:00 -0500 Subject: [PATCH] provision logs --- ANSIBLE/templates/README.md | 7 ++++++- app/Controllers/Provision.php | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ANSIBLE/templates/README.md b/ANSIBLE/templates/README.md index f5d8db9..89ee306 100644 --- a/ANSIBLE/templates/README.md +++ b/ANSIBLE/templates/README.md @@ -24,4 +24,9 @@ https://dev.to/nithinalias/docker-compose-install-wordpress-using-ansible-2lnh 172.16.250.134 -https://www.learnlinux.tv/getting-started-with-ansible-09-targeting-specific-nodes/ \ No newline at end of file +https://www.learnlinux.tv/getting-started-with-ansible-09-targeting-specific-nodes/ + + +ansible-playbook --ask-become-pass --key-file ~/.ssh/ansible_worker -i inventory 57257_A000003_mermsemr_com.yml + + diff --git a/app/Controllers/Provision.php b/app/Controllers/Provision.php index 25268e8..faaac84 100644 --- a/app/Controllers/Provision.php +++ b/app/Controllers/Provision.php @@ -182,15 +182,19 @@ class Provision extends BaseController $query = $this->db->query($mysql); } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; + log_message('critical', "***** ***** Provision Error:: updateToNow() ".$e->getMessage()); } } private function provisionActions($memberID, $provisionUID,$actionText){ + log_message('critical', "***** ***** Provision :: provisionActions($memberID, $provisionUID,$actionText) "); try { $mysql = "INSERT INTO provision_actions (member_id,product_uid,action) VALUES ($memberID,'$provisionUID', '$actionText')"; + log_message('critical', "***** ***** Provision :: provisionActions(QUERY) :: ".$mysql); $query = $this->db->query($mysql); } catch (Exception $e) { - echo 'Caught exception: ', $e->getMessage(), "\n"; + // echo 'Caught exception: ', $e->getMessage(), "\n"; + log_message('critical', "***** ***** Provision Error:: provisionActions() ".$e->getMessage()); } return 0; }