mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-15 00:18:04 +00:00
perf[net]: 优化StopWatch的打印格式,保留两位小数
This commit is contained in:
1 parent
be3ceab08f
commit
8acaf7eb57
4 files changed
+19
-7
No files matched your search
@@ -104,7 +104,7 @@ public class NetContext implements ApplicationListener<ApplicationContextEvent>,
|
||||
instance.packetService.init();
|
||||
instance.configManager.initRegistry();
|
||||
|
||||
logger.info("net start success and cost [{}] second", stopWatch.costSecond());
|
||||
logger.info("Net started successfully and cost [{}] seconds", stopWatch.costSeconds());
|
||||
} else if (event instanceof ContextClosedEvent) {
|
||||
shutdownBefore();
|
||||
shutdownAfter();
|
||||
|
||||
Reference in new issue
Block a user