From 39a820f66d4fe3fa6f3542882adf90fa1e076f1b Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期二, 05 三月 2024 11:16:44 +0800
Subject: [PATCH] 日志记录时间精确到微秒

---
 log_module/async_log_util.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/log_module/async_log_util.py b/log_module/async_log_util.py
index de70236..87ff5b0 100644
--- a/log_module/async_log_util.py
+++ b/log_module/async_log_util.py
@@ -39,7 +39,7 @@
                 cmd = val[2]
                 method = getattr(val[0], cmd)
                 d = list(val[3])
-                d[0] = f"[{tool.to_time_str(int(time_s))}.{str(time_s).split('.')[1][:3]}] " + d[0]
+                d[0] = f"[{tool.to_time_str(int(time_s))}.{str(time_s).split('.')[1][:6]}] " + d[0]
                 d = tuple(d)
                 method(*d)
             except:

--
Gitblit v1.8.0