fix: remove duplicate timestamp in log output
禁用 log 默认时间戳,避免日志输出重复时间 Co-Authored-By: AI
This commit is contained in:
@@ -14,6 +14,11 @@ var (
|
||||
mu sync.Mutex
|
||||
)
|
||||
|
||||
func init() {
|
||||
// 禁用 log 默认的时间戳前缀
|
||||
log.SetFlags(0)
|
||||
}
|
||||
|
||||
// SetLevel 设置日志级别
|
||||
func SetLevel(l string) {
|
||||
mu.Lock()
|
||||
|
||||
Reference in New Issue
Block a user