Only expose log in post-step hook

The log has step ID and workflow run ID in case an integration needs to
retrieve them.

[MAILPOET-4463]
This commit is contained in:
John Oleksowicz
2022-09-12 12:40:18 -05:00
committed by Jan Jakeš
parent 6f8edfaec4
commit 57cf547a8a
3 changed files with 13 additions and 14 deletions

View File

@@ -130,7 +130,7 @@ class StepHandler {
throw $e;
} finally {
try {
$this->hooks->doWorkflowStepAfterRun($step, $log);
$this->hooks->doWorkflowStepAfterRun($log);
} catch (Exception $e) {
$log->addError($e);
}