From e6af8ed5bd3d675b46fde3a0e0c75913939b474f Mon Sep 17 00:00:00 2001 From: Savorboard Date: Sat, 21 Jul 2018 18:01:13 +0800 Subject: [PATCH] refactor log extension --- src/DotNetCore.CAP/LoggerExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DotNetCore.CAP/LoggerExtensions.cs b/src/DotNetCore.CAP/LoggerExtensions.cs index 808096c..ab80367 100644 --- a/src/DotNetCore.CAP/LoggerExtensions.cs +++ b/src/DotNetCore.CAP/LoggerExtensions.cs @@ -35,9 +35,9 @@ namespace DotNetCore.CAP logger.LogWarning($"The {retries}th retrying send a message failed. message id: {messageId} "); } - public static void MessageHasBeenSent(this ILogger logger, double seconds) + public static void MessageHasBeenSent(this ILogger logger, string name, string content) { - logger.LogDebug($"Message published. Took: {seconds} secs."); + logger.LogDebug($"Message published. name: {name}, content:{content}."); } public static void MessagePublishException(this ILogger logger, int messageId, string reason, Exception ex)