From 04988b790750cffcffeef1e01eec0721edc2a37f Mon Sep 17 00:00:00 2001 From: Gowtham M Date: Thu, 18 Sep 2025 17:36:08 +0530 Subject: [PATCH] GWM : log added for approval and rejection --- app/Controllers/PlanController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Controllers/PlanController.php b/app/Controllers/PlanController.php index 8cbe5f8..4f6f3ff 100644 --- a/app/Controllers/PlanController.php +++ b/app/Controllers/PlanController.php @@ -742,6 +742,7 @@ class PlanController extends ResourceController $plan_id = $json['plan_id']; $user_id = $json['user_id']; + log_message('info', "Plan Approval triggered by user_id : {$user_id}, plan_id: {$plan_id}"); $delegation_user_id = $json['delegation_user_id'] ?? 0; if ((int)$delegation_user_id == 0) @@ -844,6 +845,7 @@ class PlanController extends ResourceController $plan_id = $json['plan_id']; $user_id = $json['user_id']; + log_message('info', "Plan Rejection triggered by user_id : {$user_id}, plan_id: {$plan_id}"); $reason = $json['reason']; $delegation_user_id = $json['delegation_user_id'] ?? 0;