Browse Source

delete nouse code

pull/2/head
lidongdai 5 years ago
parent
commit
f9d4cf46c0
  1. 5
      escheduler-alert/src/main/java/cn/escheduler/alert/utils/FuncUtils.java
  2. 1
      escheduler-common/src/main/java/cn/escheduler/common/zk/AbstractZKClient.java

5
escheduler-alert/src/main/java/cn/escheduler/alert/utils/FuncUtils.java

@ -22,10 +22,11 @@ public class FuncUtils {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
boolean first = true; boolean first = true;
for (String item : list) { for (String item : list) {
if (first) if (first) {
first = false; first = false;
else } else {
sb.append(split); sb.append(split);
}
sb.append(item); sb.append(item);
} }
return sb.toString(); return sb.toString();

1
escheduler-common/src/main/java/cn/escheduler/common/zk/AbstractZKClient.java

@ -312,7 +312,6 @@ public abstract class AbstractZKClient {
childrenList = zkClient.getChildren().forPath(masterZNodeParentPath); childrenList = zkClient.getChildren().forPath(masterZNodeParentPath);
} }
} catch (Exception e) { } catch (Exception e) {
// logger.warn(e.getMessage());
if(!e.getMessage().contains("java.lang.IllegalStateException: instance must be started")){ if(!e.getMessage().contains("java.lang.IllegalStateException: instance must be started")){
logger.warn(e.getMessage(),e); logger.warn(e.getMessage(),e);
} }

Loading…
Cancel
Save