diff --git a/classes/local/execution/engine.php b/classes/local/execution/engine.php index 7f38d8ec..627f7e4d 100644 --- a/classes/local/execution/engine.php +++ b/classes/local/execution/engine.php @@ -747,10 +747,6 @@ private function setup_logging() { if (isset($record['context']['step'])) { $record['message'] = '{step}: ' . $record['message']; } - if (isset($record['context']['record'])) { - $record['message'] .= ' {record}'; - $record['context']['record'] = json_encode($record['context']['record']); - } return $record; }); diff --git a/classes/local/execution/iterators/dataflow_iterator.php b/classes/local/execution/iterators/dataflow_iterator.php index 9f5946e3..0b5e8fbe 100644 --- a/classes/local/execution/iterators/dataflow_iterator.php +++ b/classes/local/execution/iterators/dataflow_iterator.php @@ -224,9 +224,7 @@ public function next($caller) { $this->stepvars->set('iterations', $this->iterationcount); // Log the iteration for real steps. - if (!$this->steptype instanceof flow_cap) { - $this->step->log->info('Iteration ' . $this->iterationcount, ['record' => $newvalue]); - } + $this->step->log->info('Iteration ' . $this->iterationcount, (array) $newvalue); } catch (\Throwable $e) { $this->step->log->error($e->getMessage()); $this->step->engine->abort();