Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/DotNetCore.CAP.Kafka/IConnectionPool.Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public ConnectionPool(ILogger<ConnectionPool> logger, IOptions<KafkaOptions> opt
_producerPool = new ConcurrentQueue<IProducer<string, byte[]>>();
_maxSize = _options.ConnectionPoolSize;

logger.LogDebug("CAP Kafka servers: {0}", _options.Servers);
logger.LogDebug("CAP Kafka servers: {kafkaServers}", _options.Servers);
}

public string ServersAddress => _options.Servers;
Expand Down
2 changes: 1 addition & 1 deletion src/DotNetCore.CAP.NATS/IConnectionPool.Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public ConnectionPool(ILogger<ConnectionPool> logger, IOptions<NATSOptions> opti
_connectionFactory = new ConnectionFactory();
_maxSize = _options.ConnectionPoolSize;

logger.LogDebug("NATS configuration: {0}", options.Value.Options);
logger.LogDebug("NATS configuration: {natsConfig}", options.Value.Options);
}

public string ServersAddress => _options.Servers;
Expand Down
2 changes: 1 addition & 1 deletion src/DotNetCore.CAP.Pulsar/IConnectionFactory.Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public ConnectionFactory(ILogger<ConnectionFactory> logger, IOptions<PulsarOptio
_options = options.Value;
_topicProducers = new ConcurrentDictionary<string, Task<IProducer<byte[]>>>();

logger.LogDebug("CAP Pulsar configuration: {0}", JsonConvert.SerializeObject(_options, Formatting.Indented));
logger.LogDebug("CAP Pulsar configuration: {capPulsarConfig}", JsonConvert.SerializeObject(_options, Formatting.Indented));
}

public async ValueTask DisposeAsync()
Expand Down
2 changes: 1 addition & 1 deletion src/DotNetCore.CAP.RabbitMQ/ITransport.RabbitMQ.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public async Task<OperateResult> SendAsync(TransportMessage message)

await channel.BasicPublishAsync(_exchange, message.GetName(), false, props, message.Body);

_logger.LogInformation("CAP message '{0}' published, internal id '{1}'", message.GetName(), message.GetId());
_logger.LogInformation("CAP message '{capMessageName}' published, internal id '{capMessageId}'", message.GetName(), message.GetId());

return OperateResult.Success;
}
Expand Down
2 changes: 1 addition & 1 deletion src/DotNetCore.CAP/Internal/IConsumerRegister.Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ private void RegisterMessageProcessor(IConsumerClient client)
}
catch (Exception e)
{
_logger.LogError(e, "An exception occurred when process received message. Message:'{0}'.",
_logger.LogError(e, "An exception occurred when process received message. Message:'{transportMessage}'.",
transportMessage);

await client.RejectAsync(sender);
Expand Down