Skip to content

Commit

Permalink
improved "Dropped message!" log error message
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed Mar 9, 2022
1 parent 44460af commit 4391e8a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ private Void incrementEnqueueCounters(final QueueOfferResult result, final Throw
enqueueSuccessCounter.increment();
} else if (QueueOfferResult.dropped().equals(result)) {
enqueueDroppedCounter.increment();
logger.error("Dropped message! - result was: {}", result);
logger.error("Dropped message as result of backpressure strategy! - result was: {} - adjust queue " +
"size or scaling if this appears regularly", result);
} else if (result instanceof QueueOfferResult.Failure) {
final var failure = (QueueOfferResult.Failure) result;
logger.error(failure.cause(), "Enqueue failed!");
Expand Down

0 comments on commit 4391e8a

Please sign in to comment.