"Colored" output - how to get rid of? We thought ...
# troubleshooting
f
"Colored" output - how to get rid of? We thought we had this solved, but we are still getting output like:
Copy code
[2022-05-04, 15:06:18 UTC] {subprocess.py:74} INFO - Running command: ['bash', '-c', 'cd /project; .meltano/run/bin schedule run logzio_hourly']
[2022-05-04, 15:06:18 UTC] {subprocess.py:85} INFO - Output:
[2022-05-04, 15:06:21 UTC] {subprocess.py:89} INFO - [2m2022-05-04T15:06:21.017661Z[0m [[32m[1minfo     [0m] [1mRunning extract & load...
We have
AIRFLOW__LOGGING__COLORED_CONSOLE_LOG
set to
False
in .env. And logging.yml with handlers.console.formatter set to json (and tried structured_plain). What is causing the color codes in the output? It makes it very difficult to troubleshoot, and provides no value.
f
Bah, seriously? it's meltano.yml but logging.yaml? We will try renaming logging.yml to logging.yaml...
p
you can name it what you want, you just need to specify its name using the
log_config
option
f
Zinga! That did it. Must have just mis-read the default logging.yaml filename. Thanks!