refactor(wrapper): removed the logger stuff so we dont fill up space
This commit is contained in:
@@ -40,7 +40,7 @@ app.Use(async (context, next) =>
|
|||||||
{
|
{
|
||||||
if (context.WebSockets.IsWebSocketRequest && context.Request.Path.StartsWithSegments("/ws"))
|
if (context.WebSockets.IsWebSocketRequest && context.Request.Path.StartsWithSegments("/ws"))
|
||||||
{
|
{
|
||||||
LogToFile($"WebSocket request received for path: {context.Request.Path}");
|
// LogToFile($"WebSocket request received for path: {context.Request.Path}");
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -65,7 +65,7 @@ app.Use(async (context, next) =>
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
LogToFile($"WebSocket proxy error: {ex.Message}");
|
//LogToFile($"WebSocket proxy error: {ex.Message}");
|
||||||
context.Response.StatusCode = (int)HttpStatusCode.BadGateway;
|
context.Response.StatusCode = (int)HttpStatusCode.BadGateway;
|
||||||
await context.Response.WriteAsync($"WebSocket proxy error: {ex.Message}");
|
await context.Response.WriteAsync($"WebSocket proxy error: {ex.Message}");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user