src/EventListener/LogErrorWhenMessageConsumptionFailed.php
public function messageConsumptionFailed(MessageConsumptionFailed $event)
    {
        $this->logger->log(
            $this->logLevel,
            $this->logMessage,
            [
                'exception' => $event->exception(),
                'message' => $event->message()
            ]
        );
    }
public function messageConsumptionFailed(MessageConsumptionFailed $event)
    {
        $this->logger->log(
            $this->logLevel,
            $this->logMessage,
            [
                'exception' => $event->exception(),
                'message' => $event->message()
            ]
        );
    }
public function messageConsumptionFailed ( MessageConsumptionFailed $ event ) { $ this -> logger -> log ( $ this -> logLevel , $ this -> logMessage , [ 'exception' => $ event -> exception ( ) , 'message' => $ event -> message ( ) ] ) ; }
Log the failed message and the related exception
Log the failed message and the related exception