Commit 2646c33a authored by yanzg's avatar yanzg

接口文档的支持

parent 07b32ba1
...@@ -90,10 +90,17 @@ public class Log { ...@@ -90,10 +90,17 @@ public class Log {
String threadId = getThreadId(); String threadId = getThreadId();
// 判断当前线程日志是否需要特殊处理 // 判断当前线程日志是否需要特殊处理
LogDate date;
synchronized (Log.class) {
if (!threadCache.containsKey(threadId)) { if (!threadCache.containsKey(threadId)) {
threadBegin(); date = threadBegin();
} else {
date = threadCache.get(threadId);
}
}
if (date == null) {
return;
} }
LogDate date = threadCache.get(threadId);
date.commit(); date.commit();
info.setTime((long) date.getLastSecond()); info.setTime((long) date.getLastSecond());
info.setTotalTime((long) date.getTotalSecond()); info.setTotalTime((long) date.getTotalSecond());
......
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