Fix logging behaviour; new tests

This commit is contained in:
Matej Bačo committed 2024-09-05 13:23:24 +00:00
1 parent f9992c2f64
commit 4ae5e82d6f
3 files changed
+145 -7

No files matched your search

+1 -3
View File
@@ -260,9 +260,7 @@ class Functions extends Action
'search' => implode(' ', [$function->getId(), $executionId]),
]);
if ($function->getAttribute('logging')) {
$execution = $dbForProject->createDocument('executions', $execution);
}
$execution = $dbForProject->createDocument('executions', $execution);
if ($execution->isEmpty()) {
throw new Exception('Failed to create execution');