visuddhinanda 2 years ago
parent
commit
2241cd150c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/Http/Api/Mq.php

+ 2 - 0
app/Http/Api/Mq.php

@@ -24,6 +24,7 @@ class Mq{
                 //一对一
 
         try{
+            Log::debug('mq start {channel} {message}',['channel'=>$channelName,'message'=>$message]);
             $host = config("queue.connections.rabbitmq.host");
             $port = config("queue.connections.rabbitmq.port");
             $user = config("queue.connections.rabbitmq.user");
@@ -114,6 +115,7 @@ class Mq{
                     }
                 }catch(\Exception $e){
                     // push to issues
+                    Log::error('mq worker exception',$e);
                     $channelName = 'issues';
                     $channelIssues = $connection->channel();
                     $channelIssues->queue_declare($channelName, false, true, false, false);