Reputation: 338
We've recently upgraded GCP's Cloud Composer to version 3 and Airflow to version 2.10.2-build.5.
After this change, all the logs that previously were multi-line, are now all in a single line with \n instead of a real line break.
Example: INFO - \n print: This is a print\n Multiline\n To see how it appears\n
I guess it is some configuration I am missing to find.
In a test dag, I've tried different things such as using:
logging.info("""
logging.info:
This is a Loggin.info
Multiline
To see how it appears
""")
logging.info("logging.info:\nThis is a Loggin.info\nMultiline\nwith slash n")
print("""
print: This is a print
Multiline
To see how it appears
""")
print("print: This is a print\nMultiline\nwith slash n")
and many others.
Upvotes: 0
Views: 26