ashb commented on a change in pull request #6998: [AIRFLOW-6404] - ANSI color 
support for WebUI logger
URL: https://github.com/apache/airflow/pull/6998#discussion_r366299150
 
 

 ##########
 File path: airflow/utils/log/logging_mixin.py
 ##########
 @@ -109,7 +110,10 @@ def _propagate_log(self, message):
         """
         Propagate message removing escape codes.
         """
-        self.logger.log(self.level, remove_escape_codes(message))
+        if conf.getboolean('core', 'colored_ui_logs'):
+            self.logger.log(self.level, message)
+        else:
+            self.logger.log(self.level, remove_escape_codes(message))
 
 Review comment:
   ElasticSearch is the same -- it would make searching more tricky if ANSI 
escape sequences got fed in to ES.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to