From ee0f54c80cc2141c152e5c452ad5a2f3c73105dc Mon Sep 17 00:00:00 2001 From: Selen Taskin Date: Thu, 6 Jul 2023 10:37:03 -0700 Subject: [PATCH] make some client ssh info verbose. --- cs/src/Connections/TunnelRelayTunnelHost.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cs/src/Connections/TunnelRelayTunnelHost.cs b/cs/src/Connections/TunnelRelayTunnelHost.cs index e3a3783b..30893232 100644 --- a/cs/src/Connections/TunnelRelayTunnelHost.cs +++ b/cs/src/Connections/TunnelRelayTunnelHost.cs @@ -162,7 +162,7 @@ protected virtual async Task CreateSessionStreamAsync(CancellationToken }; ValidateAccessToken(); - Trace.TraceInformation("Connecting to host tunnel relay {0}", this.relayUri!.AbsoluteUri); + Trace.Verbose("Connecting to host tunnel relay {0}", this.relayUri!.AbsoluteUri); var (stream, subprotocol) = await this.StreamFactory.CreateRelayStreamAsync( this.relayUri!, this.accessToken, @@ -495,11 +495,12 @@ void Session_Closed(object? sender, SshSessionClosedEventArgs e) // Reconnecting client session may cause the new session close with 'None' reason and null exception. if (cancellation.IsCancellationRequested) { - Trace.TraceInformation("Client ssh session cancelled."); + Trace.WithName("ClientSSH").Verbose("Session cancelled verbose."); } else if (e.Reason == SshDisconnectReason.ByApplication) { - Trace.TraceInformation("Client ssh session closed."); + Trace.WithName("ClientSSH").Verbose("Session closed verbose."); + } else if (e.Reason != SshDisconnectReason.None || e.Exception != null) {