Commit bf5900c0 authored by 赵啸非's avatar 赵啸非

添加设备上线和下线的业务日志记录

parent 7a6d84cd
...@@ -112,7 +112,7 @@ public class CustomerKeyExpirationListener implements MessageListener { ...@@ -112,7 +112,7 @@ public class CustomerKeyExpirationListener implements MessageListener {
errorLogPdu.initAttrValue(); errorLogPdu.initAttrValue();
errorLogPdu.setTraceID(IdUtil.objectId()); errorLogPdu.setTraceID(IdUtil.objectId());
errorLogPdu.setAppName(productEntity.getProductCode()); errorLogPdu.setAppName(productEntity.getProductCode());
errorLogPdu.setMessage(deviceEntity.getDeviceName()+"设备下线!"); errorLogPdu.setMessage(deviceEntity.getDeviceName()+deviceEntity.getDeviceCode()+"设备下线!");
errorLogPdu.setPlatform("webos"); errorLogPdu.setPlatform("webos");
errorLogPdu.setCulprit(""); errorLogPdu.setCulprit("");
errorLogPdu.setTags(""); errorLogPdu.setTags("");
...@@ -121,7 +121,7 @@ public class CustomerKeyExpirationListener implements MessageListener { ...@@ -121,7 +121,7 @@ public class CustomerKeyExpirationListener implements MessageListener {
errorLogPdu.setReleaseVersion(""); errorLogPdu.setReleaseVersion("");
errorLogPdu.setFingerprint(LogTypeEnum.上报事件.name()); errorLogPdu.setFingerprint(LogTypeEnum.上报事件.name());
errorLogPdu.setThreadNo(Thread.currentThread().toString()); errorLogPdu.setThreadNo(Thread.currentThread().toString());
errorLogPdu.setErrorStack(Thread.currentThread()+deviceEntity.getDeviceName()+"设备下线!"); errorLogPdu.setErrorStack(Thread.currentThread()+deviceEntity.getDeviceName()+deviceEntity.getDeviceCode()+"设备下线!");
errorLogPdu.setContext(""); errorLogPdu.setContext("");
errorLogPdu.setExtra(""); errorLogPdu.setExtra("");
errorLogPdu.setLogTime(new Date()); errorLogPdu.setLogTime(new Date());
......
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