Commit 4996a045 authored by 赵啸非's avatar 赵啸非

网关日志添加

parent 6fc5fc3a
...@@ -19,10 +19,13 @@ public class MessageProducer { ...@@ -19,10 +19,13 @@ public class MessageProducer {
public void syncAccessSend(AccessLogPdu accessLogPdu) { public void syncAccessSend(AccessLogPdu accessLogPdu) {
if (!ObjectUtils.isEmpty(accessLogPdu)) { if (!ObjectUtils.isEmpty(accessLogPdu)) {
String jsonString = JSON.toJSONString(accessLogPdu);
if (log.isDebugEnabled()) { if (log.isDebugEnabled()) {
log.debug("accessLog==>{}", JSON.toJSONString(accessLogPdu)); log.debug("accessLog==>{}", jsonString);
} }
rabbitTemplate.convertAndSend(QueueKey.EXCHANGE, QueueKey.ACCESS_LOG_QUEUE, JSON.toJSONString(accessLogPdu)); rabbitTemplate.convertAndSend(QueueKey.EXCHANGE, QueueKey.ACCESS_LOG_QUEUE, jsonString);
}else{
log.info("accessLogPdu is null");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment