Skip to content

Commit 058c68c

Browse files
committed
Warn when writing colored output fails.
Errors are sporadic and benign, but they affect automation tests, so drop the log level to warning.
1 parent 41e44c1 commit 058c68c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/output/plain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func (f *Plain) writeNow(writer io.Writer, value string) {
107107
}
108108
_, err := colorize.Colorize(value, writer, !f.cfg.Colored)
109109
if err != nil {
110-
logging.ErrorNoStacktrace("Writing colored output failed: %v", err)
110+
logging.Warning("Writing colored output failed: %v", err)
111111
}
112112
}
113113

0 commit comments

Comments
 (0)