How can I avoid sending logs to the Prefect API if I’m using Prefect Cloud 2?
To avoid sending your Prefect 2 logs to the the Prefect API, you can toggle the
PREFECT_LOGGING_TO_API_ENABLED setting in your flow’s runtime environment.
By default, this value is set to
True, but by setting it to
False, you can avoid sending logs to the Prefect Cloud API.