Skip to content

Commit

Permalink
Warn when writing colored output fails.
Browse files Browse the repository at this point in the history
Errors are sporadic and benign, but they affect automation tests, so drop the log level to warning.
  • Loading branch information
mitchell-as committed Dec 23, 2024
1 parent 41e44c1 commit 058c68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/output/plain.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (f *Plain) writeNow(writer io.Writer, value string) {
}
_, err := colorize.Colorize(value, writer, !f.cfg.Colored)
if err != nil {
logging.ErrorNoStacktrace("Writing colored output failed: %v", err)
logging.Warning("Writing colored output failed: %v", err)
}
}

Expand Down

0 comments on commit 058c68c

Please sign in to comment.