mirror of https://gitee.com/stylefeng/roses
【8.0】【business log】更新业务日志记录忽略异常
parent
aad3f5bb80
commit
5bc549a572
|
@ -36,15 +36,19 @@ public class BusinessLogUtil {
|
||||||
if (ObjectUtil.isEmpty(contentObject)) {
|
if (ObjectUtil.isEmpty(contentObject)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
StringBuilder stringBuffer = new StringBuilder();
|
try {
|
||||||
for (Object param : contentObject) {
|
StringBuilder stringBuffer = new StringBuilder();
|
||||||
if (param instanceof String) {
|
for (Object param : contentObject) {
|
||||||
stringBuffer.append(param);
|
if (param instanceof String) {
|
||||||
} else {
|
stringBuffer.append(param);
|
||||||
stringBuffer.append(JSON.toJSONString(param));
|
} else {
|
||||||
|
stringBuffer.append(JSON.toJSONString(param));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
BusinessLogHolder.addContent(stringBuffer.toString());
|
||||||
|
} catch (Exception e) {
|
||||||
|
// ignore
|
||||||
}
|
}
|
||||||
BusinessLogHolder.addContent(stringBuffer.toString());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue