Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

DATAFLOW: Could not change log.info level

Hello again,

I've been trying all day to custom the level of the logging Python library in my Beam data pipeline. I've been sending a parameter DEBUG through the UI, and according to the value, set something like:

 
if DEBUG:
    log.setLevel(level=logging.DEBUG)
else:
    log.setLevel(level=logging.INFO)
 
At the end of the day, I realized Dataflow has the total control of logging, so I'm using log.info for everything and controlling it accordingly.
 
Has this happened to you?
 
I'm using Apache Beam Python 3.8 SDK 2.37.0
--
Best regards
David Regalado
Web | Linkedin | Twitter
0 2 1,789
2 REPLIES 2