防止记录日志转换出现的异常

master
RuoYi 3 years ago
parent a292cccb63
commit 36c058188a
  1. 10
      ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java

@ -167,8 +167,14 @@ public class LogAspect
{
if (StringUtils.isNotNull(o) && !isFilterObject(o))
{
Object jsonObj = JSON.toJSON(o);
params += jsonObj.toString() + " ";
try
{
Object jsonObj = JSON.toJSON(o);
params += jsonObj.toString() + " ";
}
catch (Exception e)
{
}
}
}
}

Loading…
Cancel
Save