Skip to content

Conversation

@jonatanklosko
Copy link
Contributor

@jonatanklosko jonatanklosko commented Nov 3, 2025

First item from #41.

# Some errors prevent the server from starting, for example
# a missing import in urls.py. The process keeps running, just
# without the server. The LLM can fix the issue, then the watcher
# restarts the server and it works as expected. To enable the LLM
# to fix the issue, we need to surface the startup error in the
# logs. The crash results from an uncaught exception in the Django
# thread, so we patch the global excepthook, so that we write the
# exception to the log file.

Copy link
Contributor

@josevalim josevalim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

@jonatanklosko jonatanklosko merged commit f1c3d7a into main Nov 3, 2025
5 checks passed
@jonatanklosko jonatanklosko mentioned this pull request Nov 3, 2025
2 tasks
@jonatanklosko jonatanklosko deleted the jk-django-crash-logs branch November 3, 2025 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants