Skip to content

Commit

Permalink
Log connect attempt count properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Havret committed Jun 13, 2024
1 parent 1cf9e05 commit f4454b7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ private Task<IConnection> CreateConnection(CancellationToken cancellationToken)
context.SetEndpoint(endpoint);
var connectionBuilder = new ConnectionBuilder(_loggerFactory, _messageIdPolicyFactory, _clientIdFactory, _sslSettings, _tcpSettings);
Log.TryingToEstablishedConnection(_logger, endpoint, retryCount);
Log.TryingToEstablishedConnection(_logger, endpoint, retryCount + 1);
var connection = await connectionBuilder.CreateAsync(endpoint, ct).ConfigureAwait(false);
Log.ConnectionEstablished(_logger, endpoint, retryCount);
Log.ConnectionEstablished(_logger, endpoint, retryCount + 1);
return connection;
}, ctx, cancellationToken);
Expand Down

0 comments on commit f4454b7

Please sign in to comment.