diff --git a/pysnooper/tracer.py b/pysnooper/tracer.py index 206866c..59509f2 100644 --- a/pysnooper/tracer.py +++ b/pysnooper/tracer.py @@ -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'