Skip to content

Commit

Permalink
make some client ssh info verbose.
Browse files Browse the repository at this point in the history
  • Loading branch information
setaskin committed Jul 6, 2023
1 parent 9132cac commit ee0f54c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cs/src/Connections/TunnelRelayTunnelHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ protected virtual async Task<Stream> 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,
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit ee0f54c

Please sign in to comment.