Skip to content

feat: watcher - log last changed file#1447

Merged
dunglas merged 2 commits intomainfrom
feat/log-watcher-filename
Mar 19, 2025
Merged

feat: watcher - log last changed file#1447
dunglas merged 2 commits intomainfrom
feat/log-watcher-filename

Conversation

@AlliBalliBaba
Copy link
Copy Markdown
Contributor

This PR adds the suggestion from #1443 and logs the name of the file that triggered a watcher reload.

Comment thread debugstate.go
return ThreadDebugState{
Index: thread.threadIndex,
Name: thread.handler.name(),
Name: thread.name(),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This also fixes a rare race condition with the debug state that I noticed during testing.

@AlliBalliBaba AlliBalliBaba changed the title feat: watcher - logs last changed file feat: watcher - log last changed file Mar 16, 2025
@dunglas dunglas merged commit 93266df into main Mar 19, 2025
56 checks passed
@dunglas dunglas deleted the feat/log-watcher-filename branch March 19, 2025 12:10
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.

2 participants