diff --git a/app/bundles/QueueBundle/Queue/QueueService.php b/app/bundles/QueueBundle/Queue/QueueService.php index 9efb334d168..a5211f9f8e9 100644 --- a/app/bundles/QueueBundle/Queue/QueueService.php +++ b/app/bundles/QueueBundle/Queue/QueueService.php @@ -92,7 +92,10 @@ public function dispatchConsumerEventFromPayload($payload) unset($payload['mauticQueueName']); $eventName = "mautic.queue_{$queueName}"; - $this->logger->debug('QUEUE: Consuming job for '.$queueName, $logPayload); + if(is_array($logPayload)) + { + $this->logger->debug('QUEUE: Consuming job for '.$queueName, $logPayload); + } $event = new QueueConsumerEvent($payload); $this->eventDispatcher->dispatch($eventName, $event);