【8.0】【business log】更新业务日志记录忽略异常

pull/57/head
fengshuonan 2023-07-28 18:41:40 +08:00
parent aad3f5bb80
commit 5bc549a572
1 changed files with 11 additions and 7 deletions

View File

@ -36,15 +36,19 @@ public class BusinessLogUtil {
if (ObjectUtil.isEmpty(contentObject)) {
return;
}
StringBuilder stringBuffer = new StringBuilder();
for (Object param : contentObject) {
if (param instanceof String) {
stringBuffer.append(param);
} else {
stringBuffer.append(JSON.toJSONString(param));
try {
StringBuilder stringBuffer = new StringBuilder();
for (Object param : contentObject) {
if (param instanceof String) {
stringBuffer.append(param);
} else {
stringBuffer.append(JSON.toJSONString(param));
}
}
BusinessLogHolder.addContent(stringBuffer.toString());
} catch (Exception e) {
// ignore
}
BusinessLogHolder.addContent(stringBuffer.toString());
}
}