Commit 47c8e1cb by 房斌

缩减日志

parent fddc2858
......@@ -87,7 +87,7 @@ public class DubboCustomerShutDownHook extends AbstractShutDown implements Obser
registryServerSync.setSignal(true);
LoggerUtil.info("provider url unregister success :" + value.getServiceInterface() + " time:" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS").format(new Date()) +StringUtil.line());
str.add("delete provider url success:" + value.getServiceInterface() + " time:" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS").format(new Date()) +StringUtil.line());
str.add("delete" + value.getServiceInterface() + " success: " +StringUtil.line());
} catch (Exception e) {
LoggerUtil.error("matirx-monitor deleteService error:", e);
logger.info("matirx-monitor delete Service error service:{}",value.getServiceInterface() + StringUtil.line() +Stack.errInfo(e)+StringUtil.line());
......@@ -96,7 +96,7 @@ public class DubboCustomerShutDownHook extends AbstractShutDown implements Obser
}
}
}else{
str.add("warn:matrix-monitor no gracefulshutdown registered for delete ip " + ip + " name :" +name+ StringUtil.line());
str.add("no serviced registered ip " + ip + " name :" +name+ StringUtil.line());
detail.setCode(-1);
}
break;
......@@ -121,14 +121,14 @@ public class DubboCustomerShutDownHook extends AbstractShutDown implements Obser
}
}else{
detail.setCode(-1);
str.add("warn:matrix-monitor no urls check ip:" + ip + " name :"+name + StringUtil.line());
str.add(" no urls check ip:" + ip + " name :"+name + StringUtil.line());
logger.info("warn:matrix-monitor no urls check ip:" + ip + " name :"+name + StringUtil.line());
}
} catch (
Exception e) {
detail.setCode(-1);
str.add(" error :matirx-monitor offDubbo " + Stack.errInfo(e) + StringUtil.line());
str.add(" offDubbo " + Stack.errInfo(e) + StringUtil.line());
} finally {
DubboShutdownHook.getDubboShutdownHook().doDestroy();
}
......@@ -211,14 +211,14 @@ public class DubboCustomerShutDownHook extends AbstractShutDown implements Obser
} catch (Exception e) {
urls.remove(url);
detail.setCode(-1);
content.add(" error :matirx-monitor check Dubbo service " + StringUtil.line() + Stack.errInfo(e) + StringUtil.line());
content.add(" error:check Dubbo service " + Stack.errInfo(e) + StringUtil.line());
}
if (result != null && result.size() > 0) {
content.add("warn:matrix-monitor check service failure " + url.getServiceKey() + " reason zk notice failed " + StringUtil.line());
content.add("check " + url.getServiceKey() + " failure reason zk notice failed " + StringUtil.line());
detail.setCode(-1);
} else {
if (result != null && result.size() == 0) {
content.add("matrix-monitor gracefulshutdown check service ok " + url.getServiceKey() + StringUtil.line());
content.add(" check " + url.getServiceKey() + " ok"+StringUtil.line());
}
}
return result;
......
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