Skip to content

Commit 45d82d3

Browse files
danieloracagsdevme
authored andcommitted
fix: add to job log only what was added via publisher
1 parent b83f0c1 commit 45d82d3

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

EventSubscriber/LogConsoleCommandEventSubscriber.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,9 @@ public function onConsoleCommand(ConsoleCommandEvent $event): void
6060
$log = $this->jobLogRepository->findJobLog($uuid);
6161

6262
if (!$log) {
63-
if (!method_exists($input, '__toString')) {
64-
return;
65-
}
66-
67-
$commandString = $input->__toString();
68-
$log = new JobLog($commandString, $uuid);
69-
70-
$this->jobLogRepository->add($log);
63+
return;
7164
}
72-
65+
7366
$log->setStatus(JobLog::STATUS_RUNNING);
7467
$log->setStarted(new \DateTime());
7568

0 commit comments

Comments
 (0)