浏览代码

mq exit add queue name

visuddhinanda 1 年之前
父节点
当前提交
1a4616a900
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api-v8/app/Http/Api/Mq.php

+ 1 - 1
api-v8/app/Http/Api/Mq.php

@@ -174,7 +174,7 @@ class Mq
                             $GLOBALS[$key] = 1;
                             $GLOBALS[$key] = 1;
                         }
                         }
                         if ($GLOBALS[$key] >= $value) {
                         if ($GLOBALS[$key] >= $value) {
-                            Log::debug('mq exit loop=' . $GLOBALS[$key]);
+                            Log::debug("mq exit queue={$queue} loop=" . $GLOBALS[$key]);
                             $message->getChannel()->basic_cancel($message->getConsumerTag());
                             $message->getChannel()->basic_cancel($message->getConsumerTag());
                         }
                         }
                     }
                     }