Skip to content

Commit

Permalink
修正采用wg来协同
Browse files Browse the repository at this point in the history
  • Loading branch information
y-omicron committed Jul 28, 2022
1 parent 303c22d commit 2a5df1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func Success(cStr string, args ...any) {
if LevelInfo < logContext.LogLevel {
return
}
msg := fmt.Sprintf("<fg=696969>%s</> <bg=CCFF99>[ Success ] %s</>", time.Now().Format(timeFormatLayout), cStr)
msg := fmt.Sprintf("<fg=696969>%s</> <fg=CCFF99>[ Success ] %s</>", time.Now().Format(timeFormatLayout), cStr)
logContext.msg <- fmt.Sprintf(msg, args...)
logContext.wg.Add(1)
}

0 comments on commit 2a5df1c

Please sign in to comment.