You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by as...@apache.org on 2021/03/19 21:24:51 UTC

[airflow-ci-infra] 01/01: Strip ANSI escape codes from logs in CloudWatch

This is an automated email from the ASF dual-hosted git repository.

ash pushed a commit to branch fix-vector-config-bug
in repository https://gitbox.apache.org/repos/asf/airflow-ci-infra.git

commit 8e783134bff2d44e8010cfb48f22ee30a2479fc7
Author: Ash Berlin-Taylor <as...@firemirror.com>
AuthorDate: Fri Mar 19 21:21:58 2021 +0000

    Strip ANSI escape codes from logs in CloudWatch
    
    Now that we are included step logs, we need to strip the colour escape
    sequences.
---
 cloud-init.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cloud-init.yml b/cloud-init.yml
index e65b954..9b2f9f5 100644
--- a/cloud-init.yml
+++ b/cloud-init.yml
@@ -288,6 +288,7 @@ write_files:
 
           if err == null {
             . = merge(., structured)
+            .message = strip_ansi_escape_codes!(.message)
             .type = "job-output"
           }
         '''