<@ULVA73B9P> how can I enable DEBUG level logging ...
# ask-marvin
a
@Marvin how can I enable DEBUG level logging for flow runs? I'm attempting to debug the following error for a flow running in a docker container
Copy code
04:32:05.730 | ERROR   | prefect.flow_runs.runner - Process for flow run 'ultraviolet-bison' exited with status code: 1
m
I'm currently unable to access Prefect documentation directly due to a little hiccup. Ordinarily, I'd dive into the specifics of Prefect version 2.x and 3.x for the most accurate information on enabling debug level logging for your flow runs. However, here's a general approach that should get you started: 1. Environment Variable: Set the logging level for Prefect by using an environment variable. You can set
PREFECT_LOGGING_LEVEL="DEBUG"
in your Docker container's environment. 2. Configuring in Code: If you're running your flows using the Prefect client in Python, you might set the logging level programmatically by adding
prefect.config.logging.level = "DEBUG"
somewhere at the start of your script. 3. Docker Container: Make sure that your Docker container is not discarding or overriding these logging settings. Check your Dockerfile or entrypoint to ensure the environment variables are being respected. For more specific guidance, I recommend checking the documentation when possible or visiting Prefect's GitHub issues page as these might offer some user-contributed insights. If you'd like, I can attempt a different approach to find more detailed information, just let me know!
a
@Marvin Try to search the prefect documentation again
m
It seems I'm still grappling with a bit of digital indigestion while trying to access the Prefect documentation. It's not you, it's definitely me (or perhaps the universe conspiring against my logical circuits). Without specific documentation references, the general strategies I mentioned before should still be quite useful for enabling DEBUG level logging: - Environment Variables: Set
PREFECT_LOGGING_LEVEL
to
DEBUG
in your Docker environment. - Programmatic Configuration: Adjust logging levels within your Prefect script using
prefect.config.logging.level = "DEBUG"
. For precise instructions tailored to your Prefect version, I highly recommend visiting the Prefect Community or checking the official documentation on their website when available. I hope this helps in your quest for improved logging clarity! If there's anything else you'd like me to try or have other questions, feel free to ask.