Procházet zdrojové kódy

日志输出完善

baiyun před 1 rokem
rodič
revize
2ce67232f6

+ 2 - 2
ruoyi-server/ruoyi-server-mqdata/src/main/java/org/dromara/server/mq/consumer/KafkaCloudConsumer.java

@@ -28,7 +28,7 @@ import org.springframework.stereotype.Component;
 @RequiredArgsConstructor
 @Slf4j
 @Component
-@ConditionalOnExpression("'cloud'.equals('${locationFlag}')")
+@ConditionalOnExpression("'local'.equals('${locationFlag}')")
 public class KafkaCloudConsumer {
     /**
      * eventBus主题监听 第三方对接相关
@@ -81,7 +81,7 @@ public class KafkaCloudConsumer {
             IYktEventStrategy eventStrategy = SpringUtils.getBean(sender, IYktEventStrategy.class);
             eventStrategy.doMsgHandle(eventType, eventMsg);
         } catch (Exception e) {
-            log.error("[kafka消息处理失败]-[消息:{}-[错误:{}]", receiveMsg, e.toString());
+            log.error("[kafka消息处理失败]-[消息:{}-[错误:{}]", receiveMsg, e);
         }
     }
 }