Explorar o código

修正log里出现错误的pr

visuddhinanda %!s(int64=2) %!d(string=hai) anos
pai
achega
8a0aebb838
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/Http/Api/Mq.php

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

@@ -24,11 +24,12 @@ class Mq
         $connection = new AMQPStreamConnection($host, $port, $user, $password, $vhost);
         return $connection;
     }
+
     public static function publish(string $channelName, $message)
     {
         //一对一
         try {
-            Log::debug('mq start {channel} {message}', ['channel' => $channelName, 'message' => $message]);
+            Log::debug('mq publish {channel} {message}', ['channel' => $channelName, 'message' => $message]);
             $host = config("queue.connections.rabbitmq.host");
             $port = config("queue.connections.rabbitmq.port");
             $user = config("queue.connections.rabbitmq.user");