<@ULVA73B9P> In the worker logs, I can see logs co...
# ask-marvin
j
@Marvin In the worker logs, I can see logs coming from
prefect.engine
, however I cannot see those logs in the api. Inside logging.yml, I cannot see a logger that refers to
prefect.engine
, and examining the source it appears engine should be getting the logger of the current flow run. What might be causing the logs to not appear in the UI?
m
It seems like there might be a few reasons why logs from
prefect.engine
aren't appearing in the Prefect UI, despite being visible in worker logs. 1. Logging Configuration: Prefect uses the standard Python logging configuration. If the
logging.yml
isn't configured to handle logs from
prefect.engine
, they might not be propagated to the UI. You can override the logging configuration by creating your own
logging.yml
file in your
PREFECT_HOME
directory. Ensure that the logger for
prefect.engine
is set up correctly in this file. More details on configuring logging in Prefect can be found here. 2. Environment Variables: Check if the logging level is set appropriately. The logs might not appear if they are below the threshold level set for the UI. You can adjust this by setting the
PREFECT_LOGGING_ROOT_LEVEL
environment variable or updating your profile configuration. 3. Infrastructure Issues: Logs are generally available where the worker is running. If there are infrastructure issues preventing the flow from starting, logs might not be sent to the API. You can attempt to set the logging level to DEBUG to gather more information, but remember this will produce a high volume of logs. Information on troubleshooting logging issues in Prefect can be found here. No specific GitHub issues were directly related to your problem, but there are some common issues with Prefect logging and UI responsiveness that might be worth exploring if the problem persists. If none of these solutions resolve the issue, consider reaching out to the Prefect community or support for more tailored assistance.