File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/Cli/func/Actions/HostActions Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 77
88#### Changes
99
10- - Fix dotnet templates installation (#5358 )
10+ - Fix dotnet templates installation (#4538 )
11+ - Disable diagnostic events in local development by replacing the ` IDiagnosticEventRepository ` with a ` DiagnosticEventNullRepository ` (#4542 )
Original file line number Diff line number Diff line change 2121using Microsoft . Azure . WebJobs . Script . Configuration ;
2222using Microsoft . Azure . WebJobs . Script . Description ;
2323using Microsoft . Azure . WebJobs . Script . WebHost ;
24+ using Microsoft . Azure . WebJobs . Script . WebHost . Diagnostics ;
2425using Microsoft . Extensions . Configuration ;
2526using Microsoft . Extensions . DependencyInjection ;
2627using Microsoft . Extensions . Logging ;
@@ -265,6 +266,9 @@ private async Task<IWebHost> BuildWebHost(ScriptApplicationHostOptions hostOptio
265266 {
266267 services . AddSingleton < IConfigureBuilder < IServiceCollection > > ( _ => new DotNetIsolatedDebugConfigureBuilder ( ) ) ;
267268 }
269+
270+ // We do not need diagnostic events for local development, so we replace it with a null repository
271+ services . AddSingleton < IDiagnosticEventRepository , DiagnosticEventNullRepository > ( ) ;
268272 } )
269273 . Build ( ) ;
270274 }
You can’t perform that action at this time.
0 commit comments