mirror of https://github.com/MISP/MISP
chg: [workflow:executeWorkflowForTrigger] Log execution outcome
parent
098696aadb
commit
9e8a481b32
|
@ -459,6 +459,9 @@ class Workflow extends AppModel
|
|||
$message = __('Error while executing blocking workflow. %s', PHP_EOL . implode(', ', $blockingErrors));
|
||||
$this->logExecutionError($workflow, $message);
|
||||
}
|
||||
$message = __('Finished executing workflow for trigger `%s` (%s). Outcome: %s', $trigger_id, $workflow['Workflow']['id'], $blockingPathExecutionSuccess ? 'success' : 'failure');
|
||||
$this->Log->createLogEntry('SYSTEM', 'execute_workflow', 'Workflow', $workflow['Workflow']['id'], $message);
|
||||
$this->__logToFile($workflow, $message);
|
||||
return $blockingPathExecutionSuccess;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue