Is there a way to dynamically control prefect’s logging level?
References in the docs stipulate using environment variables and/or logging file, but these are read before a deployment is run, so changing them within Python has no effect.
Effectively I’d like to silence “Submitted task run…” and “Created task run…”
Hey @Bianca Hoch, I of course reached that page. It specifies a variety of ways to disable logging if you have access to the server.
This is about cancelling specific loggers from within the deployment…
b
Bianca Hoch
09/20/2023, 5:40 PM
Hmm. AFAIK, if you'd like to control the logging level, or filter certain types of logs, you'll need to have access to a custom logging.yml which has your desired logging config.
Bianca Hoch
09/20/2023, 6:04 PM
Maybe you could create a custom logging.yaml and store it in the same directory as your flow, and reference the path to it using the
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.