Skip to content

Commit

Permalink
Merge pull request #159 from karldoenitz/feature-v2.0.1
Browse files Browse the repository at this point in the history
规范化编码
  • Loading branch information
karldoenitz authored Nov 17, 2024
2 parents 78566f7 + e46f9ef commit a4f68a0
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 a4f68a0

Please sign in to comment.