https://prefect.io logo
s

Sean Talia

02/04/2021, 7:01 PM
i have a fairly high level question about the
config.toml
– i'm just trying to figure out where in the development lifecycle the
config.toml
file is primarily used. I'm looking at this documentation on extra loggers and am wondering if I want to have different loggers in use when different flows are running, and i'm using
DockerRun
for my runconfig, is the most appropriate thing to do to just change up the
PREFECT_LOGGING_EXTRA_LOGGERS
env variable in my runconfig images?
z

Zanie

02/04/2021, 7:07 PM
That would make sense! Setting it in your local config will affect
flow.run()
and setting it in your run config env will affect that flow run.
s

Sean Talia

02/04/2021, 9:35 PM
okay so something like the agent auth token would go in the
config.toml
of the environment in which an agent is being launched, but you might conceivably configure a totally different set of params (e.g. the
extra_loggers
) in the
config.toml
of the environment/runconfig where the flow is actually running
z

Zanie

02/04/2021, 10:00 PM
Yep!
Some config variables are passed through from the agent to the flow run environment as well, for example see https://github.com/PrefectHQ/prefect/blob/627b6a6fbb3e4a5666621ef16cd58cf45fc8a7c5/src/prefect/agent/docker/agent.py#L458