Sean Talia
02/23/2021, 7:20 PM[logging]
# Extra loggers for Prefect log configuration
extra_loggers = "['custom_module']"
# Send logs to Prefect Cloud
log_to_cloud = true
Alex Cano
02/23/2021, 7:46 PMconfig.toml
entry? Would love to have a solution in the thread for others reading! 🙂Sean Talia
02/23/2021, 10:52 PMconfig.toml
was built into the image; when I spun up my Agent on my laptop to be able to run the flow, I actually was passing in as a volume (using the agent's --flow
param) a different config.toml
that had some secret values that my flow needs, and this was overwriting the above config.toml
config.toml
is a bit of overkill; really, I need two separate config.toml
's – one that will get mounted into my DockerRun container, which my flow will use for its configuration at runtime, and another that's used by the agent;[logging]
# Extra loggers for Prefect log configuration
extra_loggers = "['custom_module']"
needs to go into RunConfig image's ~/.prefect/config.toml
, while the
# Send logs to Prefect Cloud
log_to_cloud = true
needs to go into the config.toml
that my agent consumes (~/.prefect/config.toml
on my local host)