fix: remove duplicate timestamp in log output

禁用 log 默认时间戳,避免日志输出重复时间

Co-Authored-By: AI
This commit is contained in:
2026-04-09 11:06:17 +08:00
parent 9b73ea9b68
commit 36d089705a
4 changed files with 5 additions and 179 deletions
+5
View File
@@ -14,6 +14,11 @@ var (
mu sync.Mutex
)
func init() {
// 禁用 log 默认的时间戳前缀
log.SetFlags(0)
}
// SetLevel 设置日志级别
func SetLevel(l string) {
mu.Lock()