Krzysztof Nawara
07/25/2021, 8:39 PMKevin Kho
Kevin Kho
Krzysztof Nawara
07/26/2021, 4:20 PMprefect server start
but it doesn't seem to be enough.
Do I need to specify it for agent/flow when submitting/ both?Kevin Kho
LocalRun(env={"PREFECT__LOGGING__LEVEL": "DEBUG"})
for the Flow side, and for the agent it would be prefect agent local start --log-level=DEBUG
. It’s a bit harder if you are using the Python interface to spin up the agent. You need to modify the config.toml
with:
[cloud.agent]
level = "debug"
Kevin Kho
Krzysztof Nawara
07/26/2021, 8:46 PMKevin Kho
PREFECT___LOGGING___LEVEL
needs to be on the agent that is executing the Flow. If you export it and register on a different machine, that environment variable will not be registered along with your Flow.
The way to attach it to you Flow through be through the RunConfig like LocalRun(env={"PREFECT__LOGGING__LEVEL": "DEBUG"})
, which would then set the environment variable when you run your flow.Krzysztof Nawara
07/27/2021, 3:04 PMKrzysztof Nawara
07/27/2021, 3:24 PMKevin Kho
log-level
flag is not available for all types of agents.