Marwan Sarieddine
07/19/2020, 7:36 PMexport PREFECT__LOGGING__LEVEL="ERROR"
but if I set the environment variable from within the script - prefect doesn’t pick up on it
import os
os.environ["PREFECT__LOGGING__LEVEL"] = "ERROR"
....
flow.run()
what am I missing here ? (is there a way to set the variable programmatically from within the script? )Chris White
07/19/2020, 8:01 PMPREFECT__LOGGING__LEVEL
prior to starting your processMarwan Sarieddine
07/19/2020, 8:04 PMChris White
07/19/2020, 8:10 PMsubprocess
or multiprocessing
modules) so that you can control the environment variables. That feels very hacky to me though…Marwan Sarieddine
07/19/2020, 8:11 PMChris White
07/19/2020, 8:11 PMemre
07/20/2020, 6:26 AMimport os
os.environ["PREFECT__LOGGING__LEVEL"] = "ERROR"
import prefect
....
flow.run()
worked for me.