https://prefect.io logo
z

Zachary Lee

07/17/2023, 4:43 PM
How can I see prefect server logs for all requests made to the api, ideally with their duration as well? I've tried enabling debug mode, and tried setting
PREFECT_LOGGING_SERVER_LEVEL=DEBUG
but neither seems to give me the logs I'm looking for...
b

Bianca Hoch

07/17/2023, 6:10 PM
Hi Zachary, just want to get a better idea of what you'er looking for here. Are you looking for a way to summarize the number of requests made to the rest API across all endpoints?
z

Zachary Lee

07/17/2023, 6:14 PM
Ideally id like to see a log of each HTTP request made to one of the api endpoints -- we're experiencing some strange intermittent slowness with prefect loading UI pages and I'm trying to debug where it's coming from. Would love to be able to see the durations of each request so that I can confirm or deny if it's truly the prefect api taking a long time or if there's something else in our networking stack that's slow upstream
b

Bianca Hoch

07/17/2023, 7:19 PM
Hmm, let me raise to the team to see they have any suggestions. How slow are we talking? More or less than 30 seconds? And you're using a local server, not cloud, is that correct?
2 Views