Skip to content

Commit

Permalink
fix(log): avoid duplicated log where there is a subrequest by listeni…
Browse files Browse the repository at this point in the history
…ng to kernel.terminate
  • Loading branch information
shavounet committed Sep 1, 2022
1 parent b09bc7b commit c9d80af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use M6Web\Bundle\LogBridgeBundle\Formatter\FormatterInterface;
use M6Web\Bundle\LogBridgeBundle\Matcher\MatcherInterface;
use Psr\Log\LoggerInterface;
use Symfony\Component\HttpKernel\Event\ResponseEvent;
use Symfony\Component\HttpKernel\Event\TerminateEvent;

/**
* LogRequestListener
Expand All @@ -22,7 +22,7 @@ public function __construct(protected FormatterInterface $contentFormatter)
{
}

public function onKernelTerminate(ResponseEvent $event): void
public function onKernelTerminate(TerminateEvent $event): void
{
if ($this->matcher === null) {
return;
Expand Down

0 comments on commit c9d80af

Please sign in to comment.