Commit 48a484bb by 杨林龙

添加方法运行耗时日志

1 parent 8e8dd038
...@@ -79,7 +79,7 @@ public class DeviceServiceImpl implements DeviceService { ...@@ -79,7 +79,7 @@ public class DeviceServiceImpl implements DeviceService {
sw.start("getDeviceOrRemote"); sw.start("getDeviceOrRemote");
Device device = getDeviceOrRemote(sn, storeIfNotExists); Device device = getDeviceOrRemote(sn, storeIfNotExists);
sw.stop(); sw.stop();
log.info(sw.getLastTaskName() + "耗时:" + sw.getTotalTimeSeconds()); log.info(sw.getLastTaskName() + "耗时:" + sw.getTotalTimeSeconds() + ",耗时详情:" + sw.prettyPrint());
if (device == null) { if (device == null) {
return null; return null;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!