I just upgraded from prefect 2.6 to 2.12.1 and am having an issue with logging. I would like INFO level logs from libraries that are used in Flows to appear in the UI. Previously, I was able to change the logging.yml to what’s below to achieve this.
# The root logger: any logger without propagation disabled sends to here as well
root:
# By default, we display warning level logs from any library in the console
# to match Python's default behavior while formatting logs nicely
level: INFO
handlers: [orion,console]
After the update though, if I change the handler to “api” from “orion”, then I do see the INFO level logs as expected, but now all of the Prefect generated logs (“Created Task Run”, “Executing”, etc.) and anything logged in the Flow with get_run_logger() are all appearing in the UI twice.
Any suggestions or is there a better way to see the underlying INFO logs?