瀏覽代碼

add logs

master
Savorboard 7 年之前
父節點
當前提交
913a0490fd
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      src/DotNetCore.CAP/Internal/ICallbackMessageSender.Default.cs

+ 3
- 1
src/DotNetCore.CAP/Internal/ICallbackMessageSender.Default.cs 查看文件

@@ -29,12 +29,14 @@ namespace DotNetCore.CAP.Internal

public async Task SendAsync(string messageId, string topicName, object bodyObj)
{
string body = null;
string body;
if (bodyObj != null && Helper.IsComplexType(bodyObj.GetType()))
body = _contentSerializer.Serialize(bodyObj);
else
body = bodyObj?.ToString();

_logger.LogDebug($"Callback message will publishing, name:{topicName},content:{body}");

var callbackMessage = new CapMessageDto
{
Id = messageId,


Loading…
取消
儲存