浏览代码

refactor(基础模块): 优化协议加载日志打印

zhouhao 2 年之前
父节点
当前提交
3f4297ed06

+ 1 - 1
jetlinks-components/protocol-component/src/main/java/org/jetlinks/community/protocol/LazyInitManagementProtocolSupports.java

@@ -79,7 +79,7 @@ public class LazyInitManagementProtocolSupports extends StaticProtocolSupports i
                     consumer.accept(e);
                 })
                 .onErrorResume((e) -> {
-                    log.error("{} protocol[{}] error: {}", operation, definition.getId(), e);
+                    log.error("{} protocol[{}] error: {}", operation, definition.getId(), e.getLocalizedMessage());
                     return Mono.empty();
                 })
                 .then();