Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable debug logging from middleware in --verbose mode #45254

Merged
merged 3 commits into from
Dec 2, 2024

Conversation

tmat
Copy link
Member

@tmat tmat commented Dec 2, 2024

Automatically include middleware log messages in the output of dotnet watch --verbose:

dbug: Microsoft.AspNetCore.Watch.BrowserRefresh.BlazorWasmHotReloadMiddleware[0]
      Middleware loaded
dbug: Microsoft.AspNetCore.Watch.BrowserRefresh.BrowserScriptMiddleware[0]
      Middleware loaded. Script /_framework/aspnetcore-browser-refresh.js (16067 B).
dbug: Microsoft.AspNetCore.Watch.BrowserRefresh.BrowserScriptMiddleware[0]
      Middleware loaded. Script /_framework/blazor-hotreload.js (799 B).
dbug: Microsoft.AspNetCore.Watch.BrowserRefresh.BrowserRefreshMiddleware[0]
      Middleware loaded
dbug: Microsoft.AspNetCore.Watch.BrowserRefresh.BrowserScriptMiddleware[0]
      Script injected: /_framework/aspnetcore-browser-refresh.js

Set DOTNET_MODIFIABLE_ASSEMBLIES even for client-only Blazor WASM apps (revert to behavior prior to 0c37ca5).

@tmat tmat requested review from a team as code owners December 2, 2024 19:16
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch untriaged Request triage from a team member labels Dec 2, 2024
Copy link
Contributor

Thanks for your PR, @tmat.
To learn about the PR process and branching schedule of this repo, please take a look at the SDK PR Guide.

@tmat
Copy link
Member Author

tmat commented Dec 2, 2024

@phil-allen-msft ptal

@tmat
Copy link
Member Author

tmat commented Dec 2, 2024

@MackinnonBuck ptal

@tmat tmat merged commit 9eb9af4 into dotnet:release/9.0.2xx Dec 2, 2024
31 checks passed
@tmat tmat deleted the MiddlewareLogging branch December 2, 2024 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants