904118851 8 сар өмнө
parent
commit
b909b32e58

+ 2 - 1
src/mq/rabbit-mq.js

@@ -23,7 +23,8 @@ class RabbitMQ {
 
 
         try {
         try {
             await channel.assertExchange(exchange, 'direct', { durable: true });
             await channel.assertExchange(exchange, 'direct', { durable: true });
-            console.log("生产者发送消息:",exchange,routingKey,msg)
+            // console.log("生产者发送消息:",exchange,routingKey,msg)
+            console.log("生产者发送消息:",exchange,routingKey)
             channel.publish(exchange, routingKey, Buffer.from(JSON.stringify(msg)));
             channel.publish(exchange, routingKey, Buffer.from(JSON.stringify(msg)));
         } catch (error) {
         } catch (error) {
             console.error('发送消息错误:', error);
             console.error('发送消息错误:', error);