ashb commented on a change in pull request #12308:
URL: https://github.com/apache/airflow/pull/12308#discussion_r522456235
##########
File path: airflow/utils/log/colored_log.py
##########
@@ -90,8 +90,9 @@ def _color_record_traceback(self, record: LogRecord) ->
LogRecord:
def format(self, record: LogRecord) -> str:
try:
- record = self._color_record_args(record)
- record = self._color_record_traceback(record)
+ if self.stream.isatty():
Review comment:
This is so that `caplog` fixture from pytest doesn't get poluted with
escape code.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]