Skip to content

Commit

Permalink
Make logs finished as default
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk authored Feb 14, 2024
1 parent bd0abcc commit de3c7c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Entity/Subscribers/ActivitySubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ public function postFlush(EventArgs $event): void
$this->isFlushing = true;

foreach ($this->items as [$target, $action, $params, $targetId]) {
// TODO: Add configuration into extension with message format so there is
// TODO: no application specific translation string available in this scope
$message = 'web.activity.'.Format::className($target).'-'.$action->value;

if ($target instanceof ParamsProvider) {
Expand All @@ -99,6 +101,7 @@ public function postFlush(EventArgs $event): void
$record->setLevel($action->color());
$record->setOwner($this->user);
$record->setParams($params);
$record->setFinished(true);

if ($target instanceof TargetProvider) {
$record->setTarget($target->getRecordTarget());
Expand Down

0 comments on commit de3c7c2

Please sign in to comment.