Skip to content

Commit

Permalink
comment update for package glog
Browse files Browse the repository at this point in the history
  • Loading branch information
gqcn committed Aug 9, 2021
1 parent efaf3d5 commit fdb6e70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion os/glog/glog_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,9 @@ func (l *Logger) printToWriter(ctx context.Context, input *HandlerInput) {
// printToStdout outputs logging content to stdout.
func (l *Logger) printToStdout(ctx context.Context, input *HandlerInput) {
if l.config.StdoutPrint {
// This will lose color in Windows os system.
// if _, err := os.Stdout.Write(input.getBuffer(true).Bytes()); err != nil {
// For color in windows.
// This will print color in Windows os system.
if _, err := fmt.Fprintf(color.Output, input.getBuffer(true).String()); err != nil {
intlog.Error(ctx, err)
}
Expand Down

0 comments on commit fdb6e70

Please sign in to comment.