Skip to content

Commit f4454b7

Browse files
committed
Log connect attempt count properly
1 parent 1cf9e05 commit f4454b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ArtemisNetClient/AutoRecovering/AutoRecoveringConnection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ private Task<IConnection> CreateConnection(CancellationToken cancellationToken)
187187
context.SetEndpoint(endpoint);
188188
var connectionBuilder = new ConnectionBuilder(_loggerFactory, _messageIdPolicyFactory, _clientIdFactory, _sslSettings, _tcpSettings);
189189

190-
Log.TryingToEstablishedConnection(_logger, endpoint, retryCount);
190+
Log.TryingToEstablishedConnection(_logger, endpoint, retryCount + 1);
191191
var connection = await connectionBuilder.CreateAsync(endpoint, ct).ConfigureAwait(false);
192-
Log.ConnectionEstablished(_logger, endpoint, retryCount);
192+
Log.ConnectionEstablished(_logger, endpoint, retryCount + 1);
193193

194194
return connection;
195195
}, ctx, cancellationToken);

0 commit comments

Comments
 (0)