fix issue printing to stdout using fmt.Fprintf for package glog
@@ -277,8 +277,9 @@ func (l *Logger) printToStdout(ctx context.Context, input *HandlerInput) *bytes.
)
// This will lose color in Windows os system.
// if _, err := os.Stdout.Write(input.getRealBuffer(true).Bytes()); err != nil {
+
// This will print color in Windows os system.
- if _, err := fmt.Fprintf(color.Output, buffer.String()); err != nil {
+ if _, err := fmt.Fprint(color.Output, buffer.String()); err != nil {
intlog.Error(ctx, err)
}
return buffer
