Skip to content

Commit

Permalink
Suppress generic host startup messages
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdageek committed Oct 19, 2022
1 parent 8f37410 commit c13c7c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Microsoft.Diagnostics.WebSocketServer/WebSocketServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ public static WebSocketServer CreateWebServer(Options options, Func<HttpContext,
webHostBuilder.UseKestrel();
webHostBuilder.Configure((/*context, */app) => ConfigureApplication(/*context,*/ app, connectionHandler));
webHostBuilder.UseUrls(MakeUrls(options.Scheme, options.Host, options.Port));
})
.UseConsoleLifetime(options =>
{
options.SuppressStatusMessages = true;
});

var host = builder.Build();
Expand Down

0 comments on commit c13c7c8

Please sign in to comment.