- Issue created by @pingwin4eg
- Assigned to dharmeshbarot89
- Merge request !9Issue #3451551: Fix the logging logic in hook_cron β (Open) created by dharmeshbarot89
- Status changed to Needs review
5 months ago 12:17pm 30 July 2024
In the hook_cron implementation the following code is called inside foreach
loop for every cron_migration entity:
if (!$import) {
$logger->notice('No migrations to import.');
}
See https://git.drupalcode.org/project/migrate_queue_importer/-/blob/2.1.x/m...
So if no migrations were queued, you can see more than a single "No migrations to import." message in logs.
Move the mentioned above code block outside the foreach loop.
Needs review
2.1
Code