From 352ca771307e0b41b652d5c217a70245a161355e Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Wed, 6 Jun 2018 04:24:30 +0800 Subject: [PATCH] Add debug info for mqtt client #133 --- src/Service/MQTTClient.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Service/MQTTClient.php b/src/Service/MQTTClient.php index 1dd2c435..a8aed8bc 100644 --- a/src/Service/MQTTClient.php +++ b/src/Service/MQTTClient.php @@ -29,6 +29,9 @@ class MQTTClient public function sendEvent(JobOrder $job_order, $payload) { + error_log('sending mqtt event: '); + error_log(print_r($payload, true)); + $sessions = $job_order->getCustomer()->getMobileSessions(); if (count($sessions) == 0) return;