From 73351ffe8603cbdddd1580b187652455e968f0dd Mon Sep 17 00:00:00 2001 From: Joe White Date: Tue, 2 Feb 2021 17:07:37 -0500 Subject: [PATCH] Ensure correct log message from ETL overseer. The php type engine gets confused when you try to string convert an iAction object in the Logger code. Possibly something to do with the way the class is constructed or the loader???? Anyway the old code results in the iAction object being treated as an Array like object in the classes/CCR/CCRLineFormatter.php on line 44. This change ensures a string is sent to the logger since that is what we want. --- classes/ETL/EtlOverseer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/ETL/EtlOverseer.php b/classes/ETL/EtlOverseer.php index 5505b22b56..deba0856e8 100644 --- a/classes/ETL/EtlOverseer.php +++ b/classes/ETL/EtlOverseer.php @@ -460,7 +460,7 @@ private function _execute($actionName, iAction $actionObj) $this->logger->info(array( 'message' => 'start', 'action_name' => $actionName, - 'action' => $actionObj, + 'action' => (string) $actionObj, 'start_date' => $this->etlOverseerOptions->getStartDate(), 'end_date' => $this->etlOverseerOptions->getEndDate(), )); @@ -486,7 +486,7 @@ private function _execute($actionName, iAction $actionObj) $this->logger->info(array( 'message' => 'end', 'action_name' => $actionName, - 'action' => $actionObj + 'action' => (string) $actionObj, )); } // _execute() } // class EtlOverseer