Skip to content

Commit

Permalink
Merge pull request #162 from karldoenitz/feature-v2.0.1
Browse files Browse the repository at this point in the history
规范化编码
  • Loading branch information
karldoenitz authored Nov 25, 2024
2 parents 919a3c1 + 4a7a8a5 commit 6cfe234
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 @@ -227,7 +227,7 @@ func InitWarning(level string) {
Warning.Level = WarningLevel
switch {
case level == "" || level == "discard":
Warning.Logger = log.New(ioutil.Discard, "\x1b[43m WARNING \x1b[0m ", log.Ldate|log.Ltime)
Warning.Logger = log.New(io.Discard, "\x1b[43m WARNING \x1b[0m ", log.Ldate|log.Ltime)
break
case level == "stdout":
Warning.Logger = log.New(os.Stdout, "\x1b[43m WARNING \x1b[0m ", log.Ldate|log.Ltime)
Expand Down

0 comments on commit 6cfe234

Please sign in to comment.