Commit 3e7ac5e2 by 周杭

日志打印

1 parent 8082ef63
......@@ -62,7 +62,9 @@ public class MsgProducer implements RabbitTemplate.ConfirmCallback {
* @param content
*/
public void topicSend(String exchange,String routingKey,String content) {
rabbitTemplate.convertAndSend(exchange,routingKey, content);
CorrelationData correlationId = new CorrelationData(UUID.randomUUID().toString());
log.info("消息id:{},推送埋点数据到mq:{}",correlationId,content);
rabbitTemplate.convertAndSend(exchange,routingKey, content,correlationId);
}
/**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!