Does anybody know if there's a way to make prefect...
# ask-community
a
Does anybody know if there's a way to make prefect agents / prefect server log tracebacks for exceptions? Some of the errors get a little hard for me to debug.
d
Hey @Alex Koay, Can you elaborate a bit here? What part of the stack isn’t exposing exceptions in the way that you’re expecting?
a
Ah, so I'm encountering some errors when running a flow in the Prefect Server environment, but at the moment, when it fails, it only prints the Last State Message with the final exception message (but excludes all the context).
@Dylan apart from starting a DockerAgent with
-f
, which seems to only output these logs into the agent's local output, is there any way to view this output from the server?
an example of an error I encountered was when I was experimenting with the Docker storage, where I kept getting a KeyError as it couldn't find the flow for some reason (I ended up finding the
-f
switch and ran a local DockerAgent to view the traceback)