Commit 5b609416 by 杨林龙

添加方法运行耗时日志

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