davsclaus commented on code in PR #7392:
URL: https://github.com/apache/camel/pull/7392#discussion_r847047006
##########
core/camel-core-processor/src/main/java/org/apache/camel/processor/resume/ResumableCompletion.java:
##########
@@ -70,6 +73,29 @@ public void onComplete(Exchange exchange) {
@Override
public void onFailure(Exchange exchange) {
- LOG.warn("Skipping offset update for due to failure in processing");
+ Exception e = exchange.getException();
+ Object offset = exchange.getMessage().getHeader(Exchange.OFFSET);
+
+ if (offset instanceof Resumable) {
+ Resumable<?, ?> resumable = (Resumable<?, ?>) offset;
+
+ if (loggingLevel == LoggingLevel.DEBUG && LOG.isDebugEnabled()) {
Review Comment:
Ah yeah that makes sense to have hardcoded DEBUG then with the stacktrace
included.
We sometimes add `(stacktrace in DEBUG logging level)` to the "other"
message so users can know how to get the stacktrace.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]