Hi. What might cause the Prefect UI to not display...
# ask-community
s
Hi. What might cause the Prefect UI to not display task logs in the task log view, and instead display:
Copy code
This run didn't generate Logs
Task logs exist in the DB and do display correctly in the flow log view. The task logs used to display at the task log view until about 2 days ago. It may have something to do with a single new flow which was added which called
get_run_logger
, a pattern which did not exist previously, has since been removed, but the problem remains globally for all our flows.
I have checked the database echo on the prefect server and it is requesting logs of level 0 and greater, which does return records. So it must be something in the UI’s interpretation of that response…
Copy code
2025-11-28 14:47:53,732 INFO sqlalchemy.engine.Engine SELECT log.name, log.level, log.flow_run_id, log.task_run_id, log.message, log.timestamp, log.id, log.created, log.updated
FROM log
WHERE log.level >= $1::INTEGER AND log.task_run_id IN ($4::UUID) ORDER BY log.timestamp ASC
 LIMIT $2::INTEGER OFFSET $3::INTEGER
2025-11-28 14:47:53,732 INFO sqlalchemy.engine.Engine [cached since 5.074s ago] (0, 200, 0, '05b931e5-8c46-440b-a4fe-0a630f2b1804')