Add run number to logs

[MAILPOET-5568]
This commit is contained in:
Jan Jakes
2023-09-05 15:34:06 +02:00
committed by Aschepikov
parent ef97e4d05a
commit 864cc2b01d
5 changed files with 40 additions and 6 deletions

View File

@@ -101,7 +101,7 @@ class TriggerHandler {
$automationRun->setId($automationRunId);
$this->stepScheduler->scheduleNextStep($stepRunArgs);
$logger = $this->stepRunLoggerFactory->createLogger($automationRunId, $step->getId(), AutomationRunLog::TYPE_TRIGGER);
$logger = $this->stepRunLoggerFactory->createLogger($automationRunId, $step->getId(), AutomationRunLog::TYPE_TRIGGER, 1);
$logger->logStepData($step);
$logger->logSuccess();
}