Commit dc8218a3 authored by yanzg's avatar yanzg

异常处理显示

parent 97dd0710
...@@ -5,6 +5,7 @@ import com.yanzuoguang.util.helper.StringHelper; ...@@ -5,6 +5,7 @@ import com.yanzuoguang.util.helper.StringHelper;
/** /**
* 日志处理默认处理函数 * 日志处理默认处理函数
*
* @author 颜佐光 * @author 颜佐光
*/ */
public class LogDefault implements RunnableLog { public class LogDefault implements RunnableLog {
...@@ -35,9 +36,7 @@ public class LogDefault implements RunnableLog { ...@@ -35,9 +36,7 @@ public class LogDefault implements RunnableLog {
info.getMessage() info.getMessage()
)); ));
if (info.getException() != null) { if (info.getException() != null) {
sb.append(System.lineSeparator());
sb.append(info.getException().getClass().getName()); sb.append(info.getException().getClass().getName());
sb.append(System.lineSeparator());
sb.append(info.getException().getMessage()); sb.append(info.getException().getMessage());
} }
......
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