Skip to content

Commit

Permalink
Improved log statement
Browse files Browse the repository at this point in the history
Co-Authored-By: danielmarbach <[email protected]>
  • Loading branch information
timbussmann and danielmarbach committed Feb 14, 2019
1 parent bc84a81 commit 09a0e5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NServiceBus.Core/Recoverability/RecoverabilityExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public Task<ErrorHandleResult> Invoke(ErrorContext errorContext)

if (recoveryAction is Discard discard)
{
Logger.Info($"Message with id '{errorContext.Message.MessageId}' discarded.{(string.IsNullOrEmpty(discard.Reason) ? string.Empty : $" Reason: {discard.Reason}")}", errorContext.Exception);
Logger.Info($"Discarding message with id '{errorContext.Message.MessageId}'. (string.IsNullOrEmpty(discard.Reason) ? string.Empty : $" Reason: {discard.Reason}")}", errorContext.Exception);
return HandledTask;
}

Expand Down Expand Up @@ -129,4 +129,4 @@ await eventAggregator.Raise(
static ILog Logger = LogManager.GetLogger<RecoverabilityExecutor>();
RecoverabilityConfig configuration;
}
}
}

0 comments on commit 09a0e5d

Please sign in to comment.