Commit a6a46f08 authored by yanzg's avatar yanzg

接口文档的支持

parent 26ab78a7
...@@ -35,14 +35,12 @@ public class LogDefault implements RunnableLog { ...@@ -35,14 +35,12 @@ public class LogDefault implements RunnableLog {
info.getTag(), info.getTag(),
info.getMessage() info.getMessage()
)); ));
if (info.getException() != null) { Throwable ex = info.getException();
sb.append(info.getException().getClass().getName()); if (ex != null) {
sb.append(info.getException().getMessage()); sb.append(ex.getClass().getName());
} sb.append(ex.getMessage());
if (info.getException() != null) {
System.err.println(sb.toString()); System.err.println(sb.toString());
info.getException().printStackTrace(); ex.printStackTrace();
} else { } else {
System.out.println(sb.toString()); System.out.println(sb.toString());
} }
......
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