Skip to content

Commit

Permalink
规范化编码
Browse files Browse the repository at this point in the history
  • Loading branch information
karldoenitz committed Nov 16, 2024
1 parent 4940fa3 commit e46f9ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func initLogger() {
log.Fatalln("Failed to open error log file: ", err)
}
Trace = &TiLog{}
Trace.Logger = log.New(ioutil.Discard, "\x1b[42m TRACE \x1b[0m ", log.Ldate|log.Ltime)
Trace.Logger = log.New(io.Discard, "\x1b[42m TRACE \x1b[0m ", log.Ldate|log.Ltime)
Trace.Level = TraceLevel
// 将运行日志写入控制台
Info = &TiLog{}
Expand Down

0 comments on commit e46f9ef

Please sign in to comment.