diff options
author | Safia Abdalla <safia@safia.rocks> | 2020-06-27 04:31:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-27 04:31:31 +0300 |
commit | 380d60dc700b1b3092da0b57fe1e763a47b54d23 (patch) | |
tree | 6b7e1c64d81041adfd726c4081f014d96fc76630 /sdks | |
parent | 80a9ecba2e7c93754b3ad26b0918976422365ff7 (diff) |
Re-enable verbose and trace logging in debug proxy (#19926)
* Re-enable verbose and trace logging in debug proxy
* Update LogLevel in ProxyDriver files
* Revert to use LogDebug for verbose messages
Diffstat (limited to 'sdks')
-rw-r--r-- | sdks/wasm/DebuggerTestSuite/Support.cs | 2 | ||||
-rw-r--r-- | sdks/wasm/Mono.WebAssembly.DebuggerProxy/DevToolsProxy.cs | 4 | ||||
-rw-r--r-- | sdks/wasm/ProxyDriver/Startup.cs | 2 | ||||
-rw-r--r-- | sdks/wasm/ProxyDriver/TestHarnessStartup.cs | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/sdks/wasm/DebuggerTestSuite/Support.cs b/sdks/wasm/DebuggerTestSuite/Support.cs index 80822ec8c46..56db77df516 100644 --- a/sdks/wasm/DebuggerTestSuite/Support.cs +++ b/sdks/wasm/DebuggerTestSuite/Support.cs @@ -74,7 +74,7 @@ namespace DebuggerTests cts.CancelAfter (span?.Milliseconds ?? 60 * 1000); //tests have 1 minute to complete by default var uri = new Uri ($"ws://{TestHarnessProxy.Endpoint.Authority}/launch-chrome-and-connect"); using var loggerFactory = LoggerFactory.Create( - builder => builder.AddConsole().AddFilter(null, LogLevel.Trace)); + builder => builder.AddConsole().AddFilter(null, LogLevel.Information)); using (var client = new InspectorClient (loggerFactory.CreateLogger<Inspector>())) { await client.Connect (uri, OnMessage, async token => { Task[] init_cmds = { diff --git a/sdks/wasm/Mono.WebAssembly.DebuggerProxy/DevToolsProxy.cs b/sdks/wasm/Mono.WebAssembly.DebuggerProxy/DevToolsProxy.cs index 1cc711809a3..5eac86d124a 100644 --- a/sdks/wasm/Mono.WebAssembly.DebuggerProxy/DevToolsProxy.cs +++ b/sdks/wasm/Mono.WebAssembly.DebuggerProxy/DevToolsProxy.cs @@ -320,10 +320,10 @@ namespace WebAssembly.Net.Debugging { { switch (priority) { case "protocol": - //logger.LogTrace (msg); + logger.LogTrace (msg); break; case "verbose": - //logger.LogDebug (msg); + logger.LogDebug (msg); break; case "info": case "warning": diff --git a/sdks/wasm/ProxyDriver/Startup.cs b/sdks/wasm/ProxyDriver/Startup.cs index fee6e30552a..e18df90c39c 100644 --- a/sdks/wasm/ProxyDriver/Startup.cs +++ b/sdks/wasm/ProxyDriver/Startup.cs @@ -124,7 +124,7 @@ namespace WebAssembly.Net.Debugging { var endpoint = new Uri ($"ws://{devToolsHost.Authority}{context.Request.Path.ToString ()}"); try { using var loggerFactory = LoggerFactory.Create( - builder => builder.AddConsole().AddFilter(null, LogLevel.Trace)); + builder => builder.AddConsole().AddFilter(null, LogLevel.Information)); var proxy = new DebuggerProxy (loggerFactory); var ideSocket = await context.WebSockets.AcceptWebSocketAsync (); diff --git a/sdks/wasm/ProxyDriver/TestHarnessStartup.cs b/sdks/wasm/ProxyDriver/TestHarnessStartup.cs index 2531b4d3185..6ae4ba32b76 100644 --- a/sdks/wasm/ProxyDriver/TestHarnessStartup.cs +++ b/sdks/wasm/ProxyDriver/TestHarnessStartup.cs @@ -107,7 +107,7 @@ namespace WebAssembly.Net.Debugging { Console.WriteLine ($"launching proxy for {con_str}"); using var loggerFactory = LoggerFactory.Create( - builder => builder.AddConsole().AddFilter(null, LogLevel.Trace)); + builder => builder.AddConsole().AddFilter(null, LogLevel.Information)); var proxy = new DebuggerProxy (loggerFactory); var browserUri = new Uri (con_str); var ideSocket = await context.WebSockets.AcceptWebSocketAsync (); |