From aa429f4efa76fa8557e16473e31efe5bc7cba441 Mon Sep 17 00:00:00 2001 From: Selen Taskin Date: Fri, 7 Jul 2023 11:23:21 -0700 Subject: [PATCH] change Client ssh info logs to verbose. (#268) * make some client ssh info verbose. * fix string --- 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..301a149b 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."); } else if (e.Reason == SshDisconnectReason.ByApplication) { - Trace.TraceInformation("Client ssh session closed."); + Trace.WithName("ClientSSH").Verbose("Session closed."); + } else if (e.Reason != SshDisconnectReason.None || e.Exception != null) {