Skip to content

Commit

Permalink
System: Gateways: Configuration - prevent out of memory on migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed May 14, 2024
1 parent 6a0da27 commit cf03557
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ public function run($model)
$result = $model->performValidation();
if (count($result) > 0) {
// save details of validation error
error_log(print_r($result, true));
foreach ($result as $msg) {
error_log(sprintf('[%s] %s', $msg->getField(), $msg->getMessage()));
}
$logger->error(sprintf(
"Migration skipped gateway %s (%s). See crash reporter for details",
$gateway->name,
Expand Down

0 comments on commit cf03557

Please sign in to comment.