jaehoon
05/12/2021, 2:00 AMprefect.config.logging.level='DEBUG'
prefect.config.debug=True
and
os.environ["PREFECT__LOGGING__LEVEL"]='DEBUG'
However, it doesn't work
How can i set DEBUG log level?Chris White
env={"PREFECT__LOGGING__LEVEL": "DEBUG"}
on any RunConfig
• you can set DEBUG level logs on your agent by starting your agent in an environment where PREFECT__LOGGING__LEVEL=DEBUG
is set as an environment variable
• you can start your agent with the -e
PREFECT__LOGGING__LEVEL=DEBUG
flag
Note that setting os.environ
doesn’t do anything and isn’t good practice (Python can’t reset its own OS environment)jaehoon
05/12/2021, 2:16 AMChris White
jaehoon
05/12/2021, 3:09 AMChris White