Commit 550e4adf authored by WuYafeng's avatar WuYafeng Committed by Savorboard

use environment new line instead \r\n (#348)

parent 7c39d3e7
...@@ -154,9 +154,9 @@ namespace DotNetCore.CAP.AzureServiceBus ...@@ -154,9 +154,9 @@ namespace DotNetCore.CAP.AzureServiceBus
{ {
var context = args.ExceptionReceivedContext; var context = args.ExceptionReceivedContext;
var exceptionMessage = var exceptionMessage =
$"- Endpoint: {context.Endpoint}\r\n" + $"- Endpoint: {context.Endpoint}" + Environment.NewLine +
$"- Entity Path: {context.EntityPath}\r\n" + $"- Entity Path: {context.EntityPath}" + Environment.NewLine +
$"- Executing Action: {context.Action}\r\n" + $"- Executing Action: {context.Action}" + Environment.NewLine +
$"- Exception: {args.Exception}"; $"- Exception: {args.Exception}";
var logArgs = new LogMessageEventArgs var logArgs = new LogMessageEventArgs
......
...@@ -42,7 +42,7 @@ namespace DotNetCore.CAP.RabbitMQ ...@@ -42,7 +42,7 @@ namespace DotNetCore.CAP.RabbitMQ
Exchange = options.ExchangeName + "." + capOptions.Version; Exchange = options.ExchangeName + "." + capOptions.Version;
} }
_logger.LogDebug("RabbitMQ configuration of CAP :\r\n {0}", JsonConvert.SerializeObject(options, Formatting.Indented)); _logger.LogDebug("RabbitMQ configuration of CAP :{0} {1}", Environment.NewLine, JsonConvert.SerializeObject(options, Formatting.Indented));
} }
IModel IConnectionChannelPool.Rent() IModel IConnectionChannelPool.Rent()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment