Skip to content

Unify logging pattern in browser refresh middleware. - #56006

Merged
tmat merged 4 commits into
dotnet:mainfrom
tmat:cleanup-middleware-logs
Sep 2, 2026
Merged

tmat merged 4 commits into
dotnet:mainfrom
tmat:cleanup-middleware-logs

Conversation

@tmat

@tmat tmat commented Aug 28, 2026

Copy link
Copy Markdown
Member

Prefix messages with "refresh" emoji so that they stand out.

Prefix messages with "refresh" emoji so that they stand out.
Copilot AI lite review requested due to automatic review settings August 28, 2026 21:30
@tmat
tmat requested a review from a team as a code owner August 28, 2026 21:30
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates dotnet-watch’s BrowserRefreshMiddleware logging to route more messages through the existing LoggerMessage.Define pattern and prefixes those messages with a refresh symbol to make them more visually distinctive in output.

Changes:

  • Replaced constructor and header-related LogDebug calls with strongly-typed Log.* methods.
  • Prefixed multiple browser refresh middleware log messages with a refresh symbol via a shared Symbol constant.
  • Added new LoggerMessage.Define entries for missing header/environment-variable debug messages.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@tmat

tmat commented Aug 28, 2026

Copy link
Copy Markdown
Member Author

@genlu

@marcpopMSFT marcpopMSFT added the Area-Watch dotnet-watch label Sep 1, 2026
@tmat
tmat requested a review from a team as a code owner September 2, 2026 04:02
@tmat
tmat merged commit 06010f6 into dotnet:main Sep 2, 2026
21 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 3, 2026

This branch had an error being deployed

1 failed deployment
copilot-pat-pool — 2870f891 Deployed Sep 2, 2026 by tmat via pre_activation #2477
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Watch dotnet-watch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants