perf[net]: 优化StopWatch的打印格式,保留两位小数

This commit is contained in:
jaysunxiao committed 2021-08-27 17:23:00 +08:00
1 parent be3ceab08f
commit 8acaf7eb57
4 files changed
+19 -7

No files matched your search

@@ -90,7 +90,7 @@ public class StorageContext implements ApplicationListener<ApplicationContextEve
// 移除没有被引用的不必要资源,为了节省服务器内存
instance.storageManager.initAfter();
logger.info("storage start success and cost [{}] second", stopWatch.costSecond());
logger.info("Storage started successfully and cost [{}] seconds", stopWatch.costSeconds());
} else if (event instanceof ContextClosedEvent) {
}