<@ULVA73B9P> prefect doesn't show my debug logs in...
# ask-marvin
j
@Marvin prefect doesn't show my debug logs in the dashboard
m
If your debug logs are not appearing in the Prefect dashboard, there are a few potential reasons and solutions you might consider: 1. Logging Level: Ensure that the logging level is set to
DEBUG
. You can do this by setting the environment variable or using the
prefect config set
CLI command. Debug logs are quite verbose, so remember to revert to
INFO
level once you've resolved any issues. More details are available in the Prefect logging documentation. 2. Worker Logs: Debug logs are often only available where the worker is running. If your flow and task logs are empty, there might be an infrastructure issue preventing your flow from starting. Check the worker logs for more details. See the troubleshooting guide for further assistance. 3. Additional Loggers: If you want to include logs from other libraries used in your flows and tasks, set the
PREFECT_LOGGING_EXTRA_LOGGERS
environment variable with the library names. This ensures that Prefect captures these logs as well. 4. Known Issues: There have been issues reported where task runs and logs were missing in certain Prefect versions. If you're using a specific release candidate or older version, consider checking the GitHub issues for any related bugs and potential fixes. By following these steps, you should be able to diagnose and potentially resolve the issue with your debug logs not appearing in the dashboard. If the problem persists, it might be worth checking the Prefect community forums or reaching out for more specific support.