Skip to content

Commit

Permalink
ConsumerBase logging wording fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriyDurov committed Nov 23, 2023
1 parent 73c3e8e commit 769d1b9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public virtual async Task Consume(ConsumeContext<TMessage> context)
Logger.LogError("Message processing failed: {error}", ex.Message);
throw;
}
Logger.LogInformation("Message has been processed successfully: {ms}ms.", sw.ElapsedMilliseconds);
Logger.LogInformation("Message has been processed successfully in {ms}ms.", sw.ElapsedMilliseconds);
sw.Stop();

await OnAfterConsuming(context);
Expand All @@ -58,7 +58,7 @@ public virtual Task Consume(ConsumeContext<Fault<TMessage>> context)
{
WriteIndented = true
});
Logger.LogError("Message processing attempt failed. Errors:\n{json}", json);
Logger.LogError("Message processing failed after {count} attempts. Errors:\n{json}", errors.Count(), json);
return Task.CompletedTask;
}
}

0 comments on commit 769d1b9

Please sign in to comment.