소스 검색

remove some log items.

undefined
Savorboard 6 년 전
부모
커밋
8e7435d48c
1개의 변경된 파일1개의 추가작업 그리고 12개의 파일을 삭제
  1. +1
    -12
      src/DotNetCore.CAP/LoggerExtensions.cs

+ 1
- 12
src/DotNetCore.CAP/LoggerExtensions.cs 파일 보기

@@ -18,7 +18,6 @@ namespace DotNetCore.CAP
private static readonly Action<ILogger, Exception> _consumerFailedWillRetry;
private static readonly Action<ILogger, double, Exception> _consumerExecuted;
private static readonly Action<ILogger, int, int, Exception> _senderRetrying;
private static readonly Action<ILogger, string, Exception> _exceptionOccuredWhileExecuting;
private static readonly Action<ILogger, double, Exception> _messageHasBeenSent;
private static readonly Action<ILogger, int, string, Exception> _messagePublishException;

@@ -73,12 +72,7 @@ namespace DotNetCore.CAP
_consumerFailedWillRetry = LoggerMessage.Define(
LogLevel.Warning,
2,
"Consumer failed to execute. Will retry.");

_exceptionOccuredWhileExecuting = LoggerMessage.Define<string>(
LogLevel.Error,
6,
"An exception occured while trying to store a message. message id: {MessageId}");
"Consumer failed to execute. Will retry.");

_messageHasBeenSent = LoggerMessage.Define<double>(
LogLevel.Debug,
@@ -136,11 +130,6 @@ namespace DotNetCore.CAP
_expectedOperationCanceledException(logger, ex.Message, ex);
}

public static void ExceptionOccuredWhileExecuting(this ILogger logger, string messageId, Exception ex)
{
_exceptionOccuredWhileExecuting(logger, messageId, ex);
}

public static void ModelBinderFormattingException(this ILogger logger, string methodName, string parameterName,
string content, Exception ex)
{


불러오는 중...
취소
저장