Don't write color escape characters to file

This commit is contained in:
Ram Rachum 2025-05-31 16:21:06 -07:00
parent 3c0f9eb65a
commit 05212d3092

View file

@ -264,7 +264,7 @@ class Tracer:
self.max_variable_length = max_variable_length
self.normalize = normalize
self.relative_time = relative_time
self.color = color
self.color = color and (output is None)
if self.color:
self._FOREGROUND_BLUE = '\x1b[34m'