Skip to content

Commit

Permalink
fix(coord): remove extensive logging of paths
Browse files Browse the repository at this point in the history
  • Loading branch information
lynzrand committed May 12, 2021
1 parent 361ce63 commit f417438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coordinator/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IService

// Add websocket acceptor
app.Use(async (ctx, next) => {
logger.LogInformation("{0},{1}", ctx.Request.Path, ctx.WebSockets.IsWebSocketRequest);
// logger.LogInformation("{0},{1}", ctx.Request.Path, ctx.WebSockets.IsWebSocketRequest);
if (ctx.Request.Path == "/api/v1/judger/ws") {
if (ctx.WebSockets.IsWebSocketRequest) {
var svc = app.ApplicationServices.GetService<JudgerCoordinatorService>();
Expand All @@ -191,7 +191,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IService
}
});
app.Use(async (ctx, next) => {
logger.LogInformation("{0},{1}", ctx.Request.Path, ctx.WebSockets.IsWebSocketRequest);
// logger.LogInformation("{0},{1}", ctx.Request.Path, ctx.WebSockets.IsWebSocketRequest);
if (ctx.Request.Path == "/api/v1/tests/ws") {
if (ctx.WebSockets.IsWebSocketRequest) {
var svc = app.ApplicationServices.GetService<FrontendUpdateService>();
Expand Down

0 comments on commit f417438

Please sign in to comment.