From dc11ceed8f67b1da7f176ba2f90eae5b0b611d09 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Sat, 2 Aug 2025 11:10:48 +0100 Subject: [PATCH] Log state value in station creation Added error-level logging for the 'state' value when processing station creation to aid in debugging and tracking input data. --- application/models/Stations.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/models/Stations.php b/application/models/Stations.php index 83670c1e..c2ef7388 100644 --- a/application/models/Stations.php +++ b/application/models/Stations.php @@ -134,6 +134,8 @@ class Stations extends CI_Model { $state = xss_clean($this->input->post('station_ca_state', true)); } else { $state = xss_clean($this->input->post('station_state', true)); + // log as an error the value of state + log_message('error', 'State value: ' . $state); } $data = array(