fix(go.d): disable logger color in terminal on Win (#21562)
Ilya Mashchenko committed
Jan 15, 2026 at 12:48 UTC
c1b6747cbd133e2668dcb7174331ccc8b30c50ec
1 file changed
+1
src/go/logger/handler.go
+1
@@ -34,6 +34,7 @@ func newTextHandler() slog.Handler {
34
35
func newTerminalHandler() slog.Handler {
36
return tint.NewHandler(os.Stderr, &tint.Options{
37
+ NoColor: runtime.GOOS == "windows",
38
AddSource: true,
39
Level: Level.lvl,
40
ReplaceAttr: func(groups []string, a slog.Attr) slog.Attr {